Removed global sync method (must be defined in the model).
Fixed a bug in the getAuthorizationHeader method.