Moved core classes into a lib folder, added phpunit xml scripts to trigger builds in jenkins