Makefile.am: Move tests into same directories as tested code

This allows for a cleaner build tree, and will provide benefits
when moving to a single Makefile.
configure.ac: Modernize the autoconf/automake invocation
Makefile.am: Use a single non-recursive Makefile

This allows all the code to be built in parallel, and only
rebuilding stuff that's changed when developing. Much quicker.

In the meantime disable the p11-tests checks, which
were very rarely used. We'll need to migrate them to TAP.
configure.ac: Put various autofoo litter in build/ an build/m4

Coverage also goes to build/coverage instead of testing/
Makefile.am: Don't do 'make distcheck' with silent make rules
Makefile.am: Use parallel tests for 'make check'

Also build in a 'make check-memory' and related functionality
which drives valgrind.
daemon: Add new --unlock option to prompt for login password

https://bugzilla.gnome.org/show_bug.cgi?id=710187
configure.ac: Drop required automake to 1.12 or later

build.gnome.org doesn't have automake 1.13 yet and I guess
others may not either.
tap-gtester: Set the HARNESS_ACTIVE environment variable

This allows tests to detect whether they're running under a harness
or not.

In addition handle the way GTests skips better.
Makefile.am: Remove coverage files when doing 'make clean'
egg: Remove egg_mkdtemp() functions and use g_mkdtemp() instead
daemon: When in foreground mode, close stdout when done initializing

This indicates to the caller both that it's the end of the environment
variables, and also provides a synchronization point where tests can
wait for the daemon.
egg: Support nested directories in egg_tests_remove_scratch_directory()

Call 'rm' to cleanup the directory instead of removing files ourselves.
We want to use nested directories in some tests.
HACKING: Update with description of how to run tests
daemon: Add a test of the control directory and environment variables

Combine some code for starting a test daemon into a new internal
utility functions.
daemon: Exit gnome-keyring-daemon when the DBus connection closes

We don't do this via the standard mechanism, as it means that libdbus
just calls _exit() (not even exit()) when the connection goes away.

This can lead to inconsistent state. Shutdown should be orderly.

https://bugzilla.gnome.org/show_bug.cgi?id=708765
daemon: Use GLib unix signal handling

Rather than our own home rolled version.
rpc-layer: Add tests of initializing with/without daemon
daemon: More indicative preconditions when startup ordering goes bad
daemon: During testing write aliases to right directory