Remove trailing whitespace
Further changes: * Added Status::getErrorsByType() which returns the internal error array untouched * Added ApiResult::convertStatusToArray() which converts a Status object to something useful for the Api