fixed interceptor
some code clean up
fixed interceptors in ags_devout.c
created skeleton of ags_sync.c
implemented remaining interceptors
... and the forgotten.
wrote some proto type definitions
added new files
moved ags_sync.[ch] to thread directory
BACKUP: thread synchronization will be moved to ags_sync.c