fixes #588 web ui accepts api_url with trailing slash
Merge pull request #589 from flapjack/588_edit_contacts_api_url_slash

web ui accepts api_url with trailing slash