Add methods for profile and edit profile views, some other tweaks

In order to satisfy @boom1992's demand, I think it's enough to add a default case which triggers a bad request http code.