change assert to exception throw

1. class URLDispatchException.
2. change assert in BasicURLDispatcher with URLDispatchException throw
and some check method.
3. change project output to static library
4. add all head file to URLDispatch.h