Fix typo
Fix reading port from config
join channel before sending message
tweak msg creations and use url_for method to generate urls