Added a view function for a user's profile page.
The app.route decorator here has an argument <nickname>, which gets its value from the function arg.
We try to load the user from the DB. If user is None, we redirect to the index page.
Else, we call render_template and send in some fake posts. The posts will be of one particular user, so 'author' is set correctly here.