Updated Switch for Dynamic Loading

Allows lightswitch to be added dynamically, and to set the stylesheets
based off of the domain and path.