autoname is hookable
Patch: change default fields like name, owner, etc to varchar(255)
Fixed load js via hook = doctype_js
Clear primary actions if not dirty
Fixed add_options of dom.js
Merge pull request #604 from anandpdoshi/wip-anand

Fixes add_options, clear primary actions, js files via hook, change to varchar 255, autoname hookable