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

Yes. And it's legitemate. What if someone uses a rest client and sends an action that is not defined?
In this case we need an error for that.