Refactored JSON.object_to_js to not handle each custom class but isntead look for #to_js.
Added missing documentation for Control.size.