Fix auto-generated endpoints text

Before:
    /endpoints:prefi

After:
    /endpoints/:prefix
Generate the string more cleanly
Merge pull request #98 from travis-ci/ha-fix-doc-endpoints

Fix auto-generated endpoints text