Allows customizing of styles and templates. Hopefully fixed foreign char encoding. Added support for specying a logoutpage