Added API functionality

Forgot all the things that I added...
-Detail view is looking better
-More general tidiness
-Can now upload basic Sparks to the database (completely String based at
the moment due to database restrictions)
Added API functionality - CORRECT

Corrected last commit
Merge pull request #21 from aphillips915/master

Added API functionality - CORRECT