Refactored binding contexts to be similar to knockoutjs. Added $context, $parent, $parentContext, $parents and $element. Also added binding context test.