fixed issue with flatten_array() (Form), added type checking for object
etc. for LoginManager
fixed issue with flatten, minor tweaks
fixed comments, biggest change is the availability of performing queries
(Database.php) with objects now as well as standard SQL queries