NULL out pointers on free.
Fix some clang static analyzer bugs.
Generalized the stack framework.

Now I can use it to keep track of orphans in addition to clearing the tree.
Possibly fixes #43.
Switch orphan tracking to generalized stack framework.
Fixed clang bug
Merge branch 'master' of https://github.com/infoforcefeed/OlegDB