rewrite bug on work computer
separate base template into header, body, footer
created utility function file

Started by creating a load_template function that serves the wanted
template.
added function for loading a controller
added encoding as a constant