Merge pull request #263 from liuchuangww/user

Add profile index and view page
Added count method to tablegateway
Code cleaning up
Add home index and view page