Refactor dramalinks script

Made it easier to read & slightly improved some of the logic. init() method
is called from messageList/topicList script - this gives us more control over
the order that functions are called.
Refactor dramalinks script

Made it easier to read & slightly improved some of the logic. init() method
is called from messageList/topicList script - this gives us more control over
the order that functions are called.