Started replacing queries with a much better interface
Brought all templates into one common template

Also added a simple stylesheet
Fixed dataset publish and moved to new db fns
API uses new db fns
Moving login/session fns over to new db
login_check to new db
Moved over the last fn (change pw) to new db fns