Adds buggy version of active record on images
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