Continue attempts to bring test suite back to life

First few stages of 'runUserTests' now work.
Revise first stage of the test suite

This includes a major cleanup of the test suite.
Add JSON resource for /packages/

Currently the JSON version only shows the package name, but am intentionally
using an object for the information

    [ { "packageName":"a50"}
    , ..
    ]

so that it should be possible to add further fields later without (hopefully)
breaking clients.
Revive next part of the test suite (package tests)
Finish revising the test suite.