Move out base layout, javascripts and head