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

*, => * (at the beginning of the query?)