updated logger and logger middleware to conform to spec.
only set content-length if it exists.
Merge pull request #32 from tamagokun/logger_interface

Logger interface Closes #31