Fixed HTTP interface.
Changed default ad representation to JSON.
Merge pull request #10 from bwross/master

Merge HTTP interface fix