Inline templates

Updated Inline templates, now better separated by using .inline-templates class indicator on .pages. Push state and history fixed. Needs a bit more testing, but it´s getting to a good state :)