switch to rails4
fix login bugs
update README.md