handleroute method exported to library and added tests
Merge pull request #3 from fernandosalomao/master

handleroute method exported to library and added tests #1