added content compression; config switchers for compression and csrf; closes #56 and #57