Cleanup some var definitions and move styles

Removed an unused stylesheet
Move existing styles into a separate file
Move var definitions into the related functions, so that they are not
all available at the top level