general: PSR-0 support step 2.

Move all classes in a new folder hierarchy in accordance with PSR-2.
This now enables our classes to be loaded from non-Lunr projects with
a PSR-0 autoloader.
buildsystem: Fixes for new repository layout.