Moved http calls into a service.
http service forgot from last commit.
Temporarily removed the use of javascript to get a simple index out.
Now I will do my best only to use javascript where I have to.