References: Make the module self contained

* Now Connection to other modules is only through hooks
* Removed the $.fn.adaptReferences

This help us to load the reference module independently, preferably
on demand.

Change-Id: Icef06db40be7d61fce6643daba744a7c952b447e