Implemented support for Control.enabled on the JS side. Fixes #17.