Added KRAKENKIT_EXTERN
Moved type declarations to impl file
Added target to event payload
Added credentials caching