Download certificate if expired.
Fetch new certificate and restart EIP.
If authentication fails, restart eip.

This happens when we update the openvpn certificate, in the first
connection attempt.
New certificate if half of its lifetime passed.

It takes for granted that the certificate is valid from the very same
date it's downloaded.
Merge branch 'bug/Certificate-expiration-#5821' into develop
Change the name of the gateway to its location.

This way, the notification shows the city of the gateway rather than the
hostname :)
Extracted methods from some chunks of code.

This is a first step for a refactoring of the EIP class.
Removed retrieveVpnService, it seems unuseful.

I've tested autostart, on+off repeated times, and switch provider. It
works.

The ServiceConnection is managed by DisconnectVPN from ics-openvpn, it's
not useful.
Udp as default transport + minor refactoring.

I've also added a check for a nullpointer when eipDefinition is
null.
Refactor setting gateway name
Merge branch 'feature/Show-location-in-openvpn-notification-message-#4665' into develop
Minor gradle updates, due to Android L.

- Build tools update to latest version (20).
- testPackageName is correctly calculated by default, doing nothing.
- support library needs some tweaks to support pre Android L versions.
We don't need support library from Robotium.

I've also fixed a simple test that wasn't letting the suite to finish
correctly.
Simulate network down.

The tests say they failed, but it's because the adb server is no longer
able to communicate with the emulator due to switching network
connectivity off (and being the adb server connected to a local tcp port
of the emulator, this port dissapears once connectivity is down).

To see if all tests passed, take a look at the logcat.
Once tests are finished, issue "adb kill-server" from the development
machine, and then "adb logcat".
network up & down 3 times: sometimes fails

I simulate removing the network at the end of the test.

Sometimes, the test fails because a openvpn tries to close a bad file
descriptor.
Some instructions to run the tests.
Bump build number and version for 0.6.0-RC1
Changelog for 0.5.4
Bump version number for the "meetup" release
Merge branch 'release-0.5.4' into develop