[WIP] Spring clean

A clear out of all unused code.

There's still more code to strip out that uses the HTTP API which isn't available in Frodo and Gotham.

This is still a work in progress.