Create admin user in lwp_initdb and implement db authentication

 * Used SHA512 for now like the original, though should use PBKDF2 with a salt later if possible.
 * Move views/base.py to views/main.py and renamed class to AppViews