Sample bot r2

New files for basic utilities and simple handlers. `sample_bot.c` much easier to write.