Update controller.js

Now supports $key, onbeforesave="obBeforSaveMethod($key, $data)"
if editable-model-key="model.key" is set.