Implemented gallery also for static pages

This patch allows the gallery plugin to be used not only for blog articles, but also for static pages.

It is needed in order to make image galleries on the http://cownado.com/ website work, but I think it could be useful for other Pelican users too.