step 6 - profile page and avatars

more database work, added database functionality for users and their
profiles. implemented a gravatar solution. also did some more stuff on
sub templates.