Added entity ID allocation

also added nall library which is really cool cuz it has a red black tree
implementation!!!!!