Makefiles: add new files, added option "-g" for debugging
All files: copied original copyright and license text back to all files containing copied code
Added new files: api.c and libbtle.h with first API functions
libtle will use asynchronous event-based processing in the future.