Implement BeanAdapter for models and controllers.

@bug W-2113873@

@rev fabbott@
@P4CL: 8811618@
Merging origin/goliver/master-pending-beans into master