Minor changes to the error module

Also add a simple color module, still needs more work.
New module: buffer

This module provides a cached data buffer, which is useful
in some situations, like caching binary files, and rewriting
their data and so on.

This module is fully written by me, except the unpack and pack
functions in buffer.c which are ripped off from the internet.