Fixes #1791: Port Lua Bin Allocator to next:

* Bin Allocator
* Lua memory allocaton fixes
* Simulator memory leak fixes

Closes #1791

To use the new Bin Allocator:
* add USE_BIN_ALLOCATOR=YES to make cmdline
* OR change default USE_BIN_ALLOCATOR = NO to USE_BIN_ALLOCATOR = YES in Makefile

I've been using this Bin Allocator in my builds for a long time without any problems.