added tests to grunt file and rejigged api code into its own folder, tests should be under one folder called test