fix read option mask and add support for things like [(:capture){3}]
Merge remote-tracking branch 'origin/master' into http-robot-control
Merge pull request #24 from kaazing/http-robot-control

Http robot control