added layout module

Simple layout templating module. This automatically creates maps a main template and changes the `body` depending on the `action`. This comes with mobile and xhr support out-of-the-box.