Move default controller function to defaults.js
controllerfunc -> controllerfuncname
merge logdefctrl