Move script in to lib folder and rename.
Split classes out in to their own files.