Overhauled the build system.

+ Migrated from scons to Rake.
+ No more java dependency.
+ Updated documentation.