fix bug and change FBlogin

fix 500 serverError(render function)
change Basehandler.py  add render and error function
let front page FBlogin function work
fix bug for HTTP 500.

FB login and login is broken.
Need to be fixed.
Merge pull request #22 from samsam2310/master

fix 500 server error