Convert ExtensionController to passive controller, and do a huge refactors.

Signed-off-by: crynobone <crynobone@gmail.com>