Update Beaver ORM to 0.4.0 and optimize some models
Separate HSTS into a separate configuration variable
Add configuration option for HSTS