Change project folder structure, add MacOS project
Make CharsetDetector optional
Add USE_CHARSET_DETECTOR flag
Format source files, add license text