Use PHP to generate gallery page

By using PHP, we can pull out all galleries from the database and create
the page automatically - i.e. for any further additions of
galleries/albums, simply add to database and it will automatically
create the rest.