auto register tasks, and fix server bugs

* auto register tasks from --app option
* add tornado address option
* fix bugs