Add Url Helper

Add PrepareUrl helper method.
Clean UrlHelper.

- Add license.
- Fix comments.
- Rename UrlHelper method.