Use tornado authentication framework. Login/signup bug fixes.