Moved everything from lib down to the topdir

- I intend this project to be more like a collection of library
  functions.