CC-5788 : Library Cleanup

sorting out event clash from register.js
fixing datatables so that things are always loaded and initialized properly.