Fixes and refactors

Moved logging owin middleware to separate library.  Updated command line
parsing.  Changes to script formatting for tables.  Changed dependency
building to same database only.