Issue # 16: Updated to be more flexible about endpoints.

Removed "TopicIndex" hardcoding and allow user config to define
URL path.