add osx file ignore
start trimming to single file app
modify to use single file as much as possible
update comments, start API documentation as slim template.
Merge pull request #1 from dlhaines/json

update to (mostly) single file