You can derive the relations for spherical coordinates using some trigonometry.
Wikipedia has them but unfortunately doesn't show a derivation; here's a rough sketch of how it works:
Let's say you have a vector
r specified in spherical coordinates by (r, θ, ϕ), where r is the length, θ is the angle to the z-axis, and ϕ is the angle you get in the xy-plane by projecting
r onto the xy-plane. (See the first figure on the Wikipedia article for an idea of what this looks like.) The dotted triangle has three sides: the vector
r itself, the vertical side which has length z, and the bottom side being a vector that we'll call, say,
r', with length r'. Trigonometry gives z = r cos θ and r' = r sin θ. Now this
r' vector is entirely in the xy-plane, and its x and y components are the same as those of
r, so you end up with x = r' cos ϕ and y = r' sin ϕ. Putting r' = r sin θ gives the result.
For your second question, (0.707, 0.707) is correct. If you check the length of (0.5, 0.5), you get about 0.707 by the Pythagorean theorem, not 1.