Add input module.

Simple stdin for now.

Also no pthread_joins.
New debug function.
Remove unused <stdlib.h>-include.
Replace printf() with debug functions in leds.c.
build.sh until I make a Makefile.