Added Replication templates for Percona

There are no templates for Percona replication, so any attempt to create
a replica using the Percona datastore will fail.

The relevant templates have been added.

Change-Id: Ide52bbb3f918caabe7b0a32adaf0ed50e49202be
Closes-Bug: #1386887
Added regression test for config with long value

This bug is fixed by changes from
https://review.openstack.org/#/c/79850

The bug was originally caused by ConfigurationsController._find_type()
only returning an int as the type even for long values.  With the
changes from the above review _find_type() now returns valid types of
int and long.

Added a regression test to validate the scenario described in the bug.

Change-Id: I6df4c919ccccad7481197b8feddaf6f27a5e4e42
Closes-Bug: #1308665
Eliminate use of sudo for two things that don't need it

The MySQL restore strategy used exec_with_root_helper() which was a
skinny wrapper on execute with sudo to find out whether MySQL was up
and running or not. This is unnecessary as any user can run mysqladmin
(by default) and similarly, any user can run ps (not only root).

Since these two code paths were the only ones that used
exec_with_root_helper() I've eliminated that as well. It didn't do
something so profound that its loss will be missed anyway.

Change-Id: Ia0452417b88416b0289f894b99a8632ab0328539
Closes-Bug: #1350075
Merge "Added regression test for config with long value"
Merge "Added Replication templates for Percona"
Merge "Eliminate use of sudo for two things that don't need it"