Added page model which gallery & flatpage now extend
Extracted page superclass for gallery/flatpage