Test: auth-local: approach as middleware

Test 'auth-local' as if it were providing
middleware. To aid with this, refactor
the mock server into its own module.

Add a test for the signout function.
Test: Remove example.js

We have other tests to look at now, rather
than the example.