Changed the remotebasedir type to SubPath
Fixing bugs to get the syncing of local events working :)
Type safe headers :)