adds admin user interface

admin access is hardcoded on the user named admin, therefore this user
should ALWAYS exist. For now, we create it in the database init
routine.
fixes a few template bugs
Merge remote-tracking branch 'origin/deployment' into deployment