Fix issue where link wasn't being passed back to Scribe
Tidying and linting LinkManager
Lint LinkManager_spec
Move setupUIEvents to more appropriate location
LinkManager close method can only be called once

Two events dialog:closed and dialog:cancelled were both triggering the
close() method. This commit fixes that.