ResourceManager: changed return format
Handlers: refractored common TCP behaviors to a new parent class

(Not fully working yet)