huge pile of additions... basic sqlite support, code cleanups, a session prototype.
factor out nll from post_data_parse