refactored to have xhr config options
moved isLocalRequest up to src/F2.js
added tests for new xhr functionality