EVERESTTWO-482 Pass default onError function to APIConnection

EVERESTTWO-482 

AdminApi.js & F-lib-patch.js
Pass default onError function to APIConnection instantiation. Handle variable error parameters in callback. Synced changes in both the patch and the AdminApi.js for consistency.

Fixed indentation in AdminApi.js