Implemented disposable instances mechanism.
Added WebController class.