Added some functions to the Profile model.
Added an endpoint for posts.