Build api url properly instead of concatenation

Hi,

as mentioned in IRC yesterday, if you don't add a trailing slash to the url when adding a server, promdash can't load graphs and metrics since it just blindly adds the url path (without leading slash).

This PR fixes this by using this pattern: https://gist.github.com/jlong/2428561