Changes to compile on OS X.

- BSD version of install doesn't have -D flag
- stdlib.h should include malloc defs (malloc.h is obsolete)
bufferevent compiler-flag fix regarding >= 2.0 ... must rebuild between 1.4 and 2.0 version builds
Merge branch 'prosody-tree'
docs: adjusted to note that luaevent-prosody was merged into this WIP
base: updated makefile to be a little more configurable, still needs much work
bufferevent unlearns read access to low-level timeout/watermark properties that appear shouldn't be exposed
bufferevent learns to set watermarking using write-accessor functions rather than low-level access
lua: updates reported version details to reflect the mainline use
base: updates changelog w/ recent changes
base: noted in CHANGELOG pending 0.3.0 release
Merge remote branch 'jsnyder-tree/master'

Conflicts:
	CHANGELOG
	Makefile
	README
docs: updates README and CHANGELOG with version notes and impending new tag
base: removes direct dependency on liblua since Lua modules should not directly link
base: adds distribution archive generation functionality to Makefile
base/lua: fixes incorrectly recorded version and prepares a new release
malloc.h -> stdlib.h (thanks nulani)
Merge with upstream
event_callback.c: Check for event being destroyed during callback
event_callback.c: Don't delete and re-add the event if the timeout hasn't changed