edit gitignore to ignore vendor dir

Refactor into partial
use partial in index
add http basic auth
finish up
use postgres for production