Added delete() to ContextManager
Using ContextManager instead of class singleton

Fixes thread-safety. Got rid of init() too.