Made layouts configurable.
Fixed admin controller subclassing to simplify applying security