Trying to shave off a bit of the ugliness

This code is old, and something I am not proud of. Due to people
using it still as I can see from my blog's comments I thought I should
at least clean it up a bit.

- Removed all dependencies to old versions of Refu library
- Provided a makefile