A few fixes. Also changed strucure and naming in json a bit.
Add gitignore for vim swapfiles and OS X DS_Store files.
Add simple unit test for Detector. Will refactor to use a unit test framework as soon as I have internet again.
Add simple html for test.