check for valid options object
Merge pull request #822 from snowkeeper/0.2.x-email

check for valid options object
Adding apiNotFound and apiNotAllowed convenience methods to initAPI for #824
Allowing configuration of Allow-Origin / Methods / Headers to initAPI for #824
Merge branch '0.2.x'