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

Mmh imo you should somehow "extend" the data in JS and remove this from the query...