move lib out of /client and /src/client, begin to make progress in setting up tests