add tests, lib folder to the consoleapp

@sethladd, add tests and a `lib/` folder to the console app.
Not sure - this is probably pretty dependent on what the library is trying to do. I'll try changing this to a slightly more prescriptive sample.