added /tasks and /state functions within the server object
added functionality to keep a locally cached list of active tasks within server object