initial logging middleware implementation

It looks like someone already made a NoBrainer.logger variable. I used that and added NoBrainer.log_level, with a middleware class to actually use them. It feels a bit dirty to have these two variables defined at the top level like that (as opposed to inside some sort of configuration), but I didn't see a better way.