Add YAL source codes
Move thread-related functionality into the appropriate files

Relocate threading-related definitions from `quarks.c` to `thread.c/thread.h`.
Switch from C90 to C11
Add memory management functionalities
Replace calls to malloc, realloc and free by calls to library defined functions
Improve reference counting of quarks