Medusa support

Now addresses issue #115 as well,
Not sure I have done it properly as I still do not see Medusa in web UI.