Major cleanup.

- Moved OO helper to Substance globals.
- Moved some VE impls into src folder
- Removed obsolete libraries from lib folder