NOTE: This article is now available as a series of articles on MDN: https://developer.mozilla.org/en/Mozilla/Boot_to_Gecko/ and will be maintained and updated there.
Part 2: Setting up Marionette for automating WebAPI testing on B2G
Syndicator