Updated the build scripts again.

- Now allows for property hooks to use a local sonatype nexus server.
- Still backs onto maven central if this is not configured.
- Allows for publishing snapshots and releases to the server.
- Changed the dependency structure of some of the test dependencies.