InferSchema, cleanup, library headers

Address #189 except it doesn't do client queuing.. will make a separate issue.
https://github.com/Locu/chronology/commit/e22bd8962b025e566b747dd9eafeecf3eba9747b