Refactor so that libs are an element where they are needed, stored as string paths.

We parse them into URLs when necessary
Add some morefocus/click to testHome, tests don't work
Rewrite session files on the fly with location of test data directory (where key specified),
so that the tests can be run on other computers more easily