Added ability to set hook on resource bind. Resolves #50
Added tests for stream bind hook
Merge pull request #54 from krnekit/bind-hook

Added ability to set hook on resource bind. Resolves #50