[BISERVER-8627] Making the home perspective theme-able.

 Also externalizing common javascript to common-ui plugin.