Gallery Page and Layout creation from templates

gallery page is modified to allow file uploading and displaying media
from library. Also layout creation from templates is work in progress