Simplify user profile page and create debug page

@IanMayo Please check and merge.

Particular qualities:
- I've introduced APP_DEBUG constant