Took far too long.

Ok, literally, this has taken me ages to do. Turns out there were a number of existing problems breaking all that I did..
One of them, is th eissue in 052c9e3, it now makes all of buxton work again, except for demos. That no longer builds properly, but this was introduced by earlier changes to the build system. Need help looking into this.
Also, for some unknown reason, although this set of changes works, buxton_array_free does not. I've been taking a spanner to this in every way all day. I've been redoing these same commits for days and finally cracked one issue today (the db/gdbm thing. Felt kinda stupid. Of course the string was garbage.)

Anyway, this is what I have right now, and need help to get this usable/workable within the main repo. Cheers!