Merge pull request #3 from karuto/gallery2

Gallery2 recent works
Merge pull request #4 from karuto/gallery2

Completed basic app sidebars, refined app page
Merge pull request #8 from karuto/gallerydev

All the gallery work so far (sidebars, pagination, UI tweaks etc)
Merge pull request #9 from karuto/gallerydev

Recent gallery works (publish app page GUI)
vince, these are changes which have basic db stuff working to a point. Probably we should
freeze a branch that uses the old gallery and then use this as a new branch which will use new db
Fixed conflicts