Moved helper methods out to a trait and linked them (as well as the auth and session objects) in to MainModel
Amended version number to 0.37.1 and updated changelog
Added _Database::error() method, to return last MySQLi error text
Moved plugin/vars/functions file include to above method/controller include