Removes trailing spaces.
Reorders http handler functions. Still serves everything from "/" :(