widget,emulation: Separate application palette from terminal palette

Make colors set by escape sequences have higher precedence than those set via
API calls.

https://bugzilla.gnome.org/show_bug.cgi?id=705985