Fix 'maintainAspectRatio' for GD. #662
Explicitly destroy GD images.
Scale up images in GD.

ImageMagick will scale up images if they're smaller than the requested
width/height, so do the same in ImageGD. Fixes some minor problems in
the gallery view.
Altering index to optimize tag queries. Closes gh-1024
Altering index to optimize tag queries. Closes gh-1024
Adding index to the config table to speed up queries. Closes #1025
Adding index to the config table to speed up queries. Closes #1025
Fix getAlbumElements so it filters by album id
Fix getAlbumElements so it filters by album id
Merge branch 'master' of https://github.com/n8d/frontend into pr-1036
Merge branch 'master' of https://github.com/n8d/frontend into pr-1036
Merge branch 'fabrizio1.0' into development

Conflicts:
	src/configs/upgrade/db/mysql/mysql-4.0.0.php
Adding initial code for guided tours of new features. #1193
Merge branch 'development' of github.com:photo/frontend into development

Conflicts:
	src/configs/upgrade/db/mysql/mysql-4.0.0.php
Completing initial version of the tutorial framework. Closes #1193
Adding unit test for tutorial model. Closes #1193
Remove links to import. #638
Adding Tutorial.js. #1193
Updating Tutorial model to support unit tests. #1193
Increasing media version for tutorial. #1193