ENH: Save function to database_object.class.php
ENH: phpdoc, js and some other changes
ENH: js
ENH: added map object to js and SystemMessages