Links: Make the link module self contained

* Use the hooks to communicate
* Remove $.fn.adaptLinks

Helps to load the module conditionally.

Change-Id: I3f66c3786c311f271c1ac223d3133405ff377b15
Merge "Links: Make the link module self contained"