EVERESTTWO-482 Pass default onError function to APIConnection instantiation. Synced changes in both the patch and the AdminApi.js for consistency.
Formatting fix for original pull request for EVERESTTWO-482.
Merge pull request #8 from forio/develop

EVERESTTWO-482 Pass default onError function to APIConnection