set X-Requested-With to XMLHttpRequest for xhr
fix `this.isServer` for model hooks