Converted control panel core function into jquery plugin.
Converted navbar core function into a jquery plugin.
Can now specify config callbacks either in div data attributes, or as arguments to plugin function.