Mock server robustification (closes #49)

This removes some ugly hacks in the mock servers and makes server instances reusable throughout tests. The end result is that the servers are simpler and tests are *much* faster (from ~90 seconds down to ~20 on my machine).