Added theme defaults, security and fixed a few

Just a couple things added (e.g. security improvements, stylesheet
initialization, etc.)