_isRest() now checks Accept Headers and detects default browser requests (fixes gh-3)