refactor close; add TODOs
Add app-server and curator.clj