refactor whole define structure

1. seperate to 'define', 'define.getModule', 'define.onLoad',
'define.resolveDependencies', 'define.onReady', 'define.execModule'
functions;
2. add same status flags as ajax;
3. include 'util/log' module;