Add basic functions of agent

add task running list;
calculate task running time;
convert task return value to SUCCESS or FAILED;
control the number of fork;
add some coding style changes
fix agent code
Merge branch 'master' of https://github.com/helight/openflow