Adds session encryption pw to config.
Adds hapi-as-promised and joi as dependencies.
Refactoring (draft): store errors and solutions in mysql.