Reorganize the compact links code, make it a jquery plugin

No change in functionality. Refactored the code a lot and made it as
a jquery plugin, similar to the other components of ULS

Change-Id: I69199ba37b13ec7fd4a9b7b8eba5b3aa28f0edb5
Merge "Reorganize the compact links code, make it a jquery plugin"