Fix tests and build

  - run `grunt test` as `npm test` script explicitly
  - run `grunt build` as part of `after_success` hook, but only if it is
    not a Pull Request
  - increase `grunt localScenario` timeouts as some tests take longer
    time after we merged file browser branch