Ryle's initial changes to use as lib, not webapp.