engine: fix preedit background colour and underlining

BUG=rhbz#995842

Review URL: https://codereview.appspot.com/12688049
Patch from Mike FABIAN <mfabian@redhat.com>.