Update to 3.1.2 release
The release contains several bugfixes. This change also adds some upstream
patches that fixes backward incompatibilities changes that were introduced
in the 3.1.0 release.
Resolves: rhbz#1625647
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>