Added api to users pages and updated as_json method to automatically include everything necessary for the show page