Code clean up

Cleaned up the code and the dir structure a bit:
 - renamed source and header files according to a CamelCase
   naming convention
 - removed old and temporary files
 - fixed the DEBUG macro
 - added a Makefile in /stack subfolder to prevent Make from
   complaining

Signed-off-by: Raffaele Aquilone <aquiloneraf@gmail.com>