remove pre-0.8 code
move stated files to lib, update all paths