add _free routine to conf module

objset sometimes allocates memory, so we have
to rune _clear() on it when we are done with
struct conf
fix memory leak in keymap

if a key was already bound when keymap_bind
was called we were overwiting the reference
to the old binding description. this means
that memory would never be freed.
fix memory leak in panel_stack_test

dummy was not getting freed.
fixed nasty use after free bug in region map

region_map_keyregs_clear would free a key_regs pointer
and then subsequently allocate a new AVL tree to be
the new key_regs object. however since the input
parameter was a single pointer, the newly allocated
AVL tree was getting assigned to that local variable
and was not getting back to the caller. changed the
input parameter to be a double pointer so we can
replace the old AVL tree for real.
fixed memory leak in region_map

when a list of pushed regions had two regions associated
with the same key and region_map_apply was called, then
the apply process which builds the avl tree of keys
mapping to regions would overwrite the previous region associated
with a key (if it existed). this means that region struct would
never get freed. now we simply reuse the already allocated region
struct by overwriting the values in it.
fix uninitialized var error in aug.c

also fix minor use after free error in
api_test.c
fixed memory leak in the win_alloc api call family

the struct that was holding the plugin, window callback
and free callback was not being freed after the window
was deallocated.
markdown bold doesnt work so close to (
refactored err.* to seperate error logging

this allows easy err_warn macro
improved the design of the unload api call

the unload api call now does its work in a newly
spawned and detached thread such that the plugin
can join its own threads in its aug_plugin_free
function without worrying about joining itself
(previously the calling thread was used to call
the aug_plugin_free function).

this indirectly fixed a memory leak in unload.c
(it was failing to join the thread it created).
fixed bug introduced in commit b314952d2f1850d62167afeac27ebafd632064b7

input winsize variable was accidentally being zero'd out
Merge branch 'master' into port_osx