Further developed the templating aspects

Mobile sites can now be detected and will switch to a mobile version of
the current theme if available, urls are no longer in the view but
developed within the system along with some parsing and template changes