Setting type information before onActivated gets called, this way we actually get the correct type info :)
Checking security against the instance of the context instead of the type... Helps.. :)
Cleaning up - removing commented out code
Introducing a date extension for doing formatting of dates!