Added basic registration form that doesn't post yet. Fixed some other stuff and made it a bit more modular.