added route resource management
Merge pull request #22 from scarby/master

added route resource management