initial checkin (copied and repackaged from https://github.com/mengxr/redshift-input-format)