Updated project to latest "best practices".

- Modified directory structure.
- Enhanced source code documentation.
- Improved 3rd party tool integration.
- Dropped PEAR support.

Signed-off-by: Florian Wolters <wolters.fl@gmail.com>