Updated to erb files etc.

Used embedded ruby files (killed html). Serving all endpoints using template setup.