Fix an error (and consequently the topic is actually set now).
Separate profiles() from get_profiles() for different /topic formatting.
get_profiles() now does the fetching/heavy lifing, and profiles() simply
formats the /topic.