add URLParser and related unit test

1. add URLParser and related unit test
2. fix unit test bug in URLDispatchTests