extend resource manager to manage input buffers
Adjust input buffer related codes

One change leads to another, the changes look a lot but there is only
one goal. That is, moving the input buffr management into
ResourceManager.
Cleanup physical channel states

demap the logic channel from the physical channel.
Do not serialize TB when no schema is stored

This occurs when a channel closes abnormally.
Merge branch 'master' into slxu-kill-cleanup
fix extra space in comment
Add a getInputBuffer method
Verify null
Merge pull request #584 from uwescience/slxu-kill-cleanup

Slxu kill cleanup