add better github pull request support
use constant for ApiRoot
Merge branch 'robmorgan-master'

* robmorgan-master:
  use constant for ApiRoot
  add better github pull request support