Add content-negotiation handling for stream vs. db query

Add log4j config, so it shuts up