Split util/URLUtil into URLUtil library and tools/URLTool
* URLUtil contains URLEncode and URLDecode
* URLTool contains main, and encodes by default (specify any arguments to decode)
Buffer decoding input to avoid split-code errors.
Tidy class, remove excess code, improve comments and error handling.