Adds buggy version of active record on images
Moved countries_array.php to population folder and made Vitsalis corrections
Moved countries_array.php to population folder and made Vitsalis corrections
Merge branch 'master' into active_record
Add db_select_one function for queries that return only one result
Migrations are now numbered based on date
Change images table field from imageid to id
Fix image active record.

- Image has-a User object.
- Remove list of user-specific attributes from User
- getCurrentImage() converted into a finder factory
- Image constructor takes image id instaed of user id
Replace all include with include_once
Fix some buggs
Remove .swn file
Add .swn files to gitignore
Removes unnesecary lines of code
Removes interface with users table from image model
Makes ActiveRecordBase an abstract class
Removed unnesecary spaces
Renam some functions to include
Fixed coding style
pulled from vit