Updates to tidy up and get tests passing on master.

* Move integration test Java dependencies from core to test
* Re-shade yydebug, since tests appear to depend on it.
* Restore the copying of unsafe-mock for use in compile phase.
* Stop using project.parent.basedir which does not appear to
  be supported consistently.
* Set compile mode to OFF for unit tests for now, to avoid
  memory/permgen issues.
* Get a few more unit tests passing. Still not 100%.
* Move generated sources to standard maven location. Should be
  the last dependency on "build" dir.
* Duplicate quiet.rb which appears to be used by both unit
  tests and integration tests.
* Update the BUILDING file for changes in development workflow.