Ready made Authentication with Sentry 2.1, based in rydurham/sentinel. I use Sqlite for portability of this app, but it can be easily altered to other DB