Add Maven and Eclipse build configuration, plus some minor cleanup.