Moved login/register form markup stuff into user module.

Cleanup. Goes hand-in-hand with #876.