Fixed 404 pages
Merge remote-tracking branch 'upstream/master'
Models rewrite; removed RedBeanPHP; misc changes

Pages load 1.5-2x faster
Exception trace in JSON is now represented as an array
Fixed pagination of default favorites page in user pages
Fixed thumbnail size validation for non-square thumbnails
Fixed changing access rank
Merge remote-tracking branch 'upstream/master'
Version upgrade (0.6.0)
Fixes for MySQL driver
Merge remote-tracking branch 'upstream/master'