separating clue solver lib from cmd line app

Moved all of the clue solver logic into a separate lib project, made a
separate project for the command line interface that links to the lib.