add OPTIONS verb so that CORS works in Chrome. also use OOP
Merge pull request #871 from ysangkok/chrome-fix

bin xhr sync test: add OPTIONS verb so that CORS works in Chrome. also use OOP