Refactoring Kernel & Binding to inline object.
Add unit tests for scoping.