Adding apiNotFound and apiNotAllowed convenience methods to initAPI for #824
Allowing configuration of Allow-Origin / Methods / Headers to initAPI for #824