Adding support for alternative layout templating

Not fully working, slices disappear from admin page when using Haml