clearing up the lib directory by moving unused code into old. It is useful however to keep it around for ideas (such as a statecharts example in old/autodetect.js)