Added gradle build files; target API 18

Switch to gradle build system
Target Android 4.3 (API 18)
Implement Up navigation

Implement Up Affordance (Up Navigation) on all the child activities
Add support library
Remove gradle cache files
Switch to flat holo light icons
Fix non-translatable strings
Initial ViewPager support (WIP)

Support for tab-swiping using a ViewPager
Transitioned tabs from Activities to Fragments (from the support library)
Removed intent passing to tabs as they are now fragments
Fix typo in drawable name
MyTabListener: ViewPager tab listener class
CardsFragment: Refactoring and restructuring
Some other general code cleanup and improvements, including try-catch
 optimisations.

TODO: Refresh is currently broken (does nothing).
Initial ViewPager support (WIP)

Support for tab-swiping using a ViewPager
Transitioned tabs from Activities to Fragments (from the support library)
Removed intent passing to tabs as they are now fragments
Fix typo in drawable name
MyTabListener: ViewPager tab listener class
CardsFragment: Refactoring and restructuring
Some other general code cleanup and improvements, including try-catch
 optimisations.
Moved the commit countdown to start closer to when the request is made.

TODO: After changing the gerrit source and using up navigation back from
 preferences, FC due to widgets not being attached to window.
Merge change timer start with fixes for refreshing when gerrit changes.

This completes the initial ViewPager support implementation.

Conflicts:
	src/com/jbirdvegas/mgerrit/CardsFragment.java
	src/com/jbirdvegas/mgerrit/GerritControllerActivity.java
mGerrit: Fix GerritTask not showing transfer progress on some devices

UrlConnection transparently sends "Accept-Encoding":"gzip" by default.
Because the underlying mechanisim has no way of knowing the unzipped
size of the stream it appeared to download more bytes than was returned
by UrlConnection#getContentLength().  On other devices UrlConnection
stripped the value from "Content-Length" header as its inaccurate
while the stream is gzip'd returning -1 and causing the ProgressDialog
to show a generic message instead of showing the bytes as they are
downloaded.

Moved calculations off the main thread to show bt progress updates
quicker... Its still not as fast as possible but much better.

Thanks @razorloves for pointing this error out and spearheading
efforts to resolve the issue.  Razor did all the work here by
finding the docs to support his theory and providing sample
code to fix the issue. Thank you for such on point helping!

Change-Id: Ida506e46a40af2b87eaaf2ba4c01f15a7df380bf
(cherry picked from commit 7bc8fa1a268a997f2ded6bb6a8ae38fbfb3e394d)
mGerrit: Lower min API version to v11 (ICS)

By providing a values res folder with a modified styles.xml
(removing fontFamily tags) we can now support ICS+ devices

Change-Id: I5375b94d22ec95d9fa801d1df6bfd2649e3b4f83

Conflicts:
	AndroidManifest.xml
Merge mGerrit: Fix project card not properly being removed

Previously swiping away a selected project would only
affect your current tab. Changing tabs would reselect
the project, a very frustrating "feature".

Now swiping away a selected project has the expected
result of not showing the project as selected while
navigating throughout the app.

Thanks Evan Conway from the Google PlayStore for pointing
this out!

Change-Id: I5bfec6ba3be86dee87c4a13fdead4e300b897472

Conflicts:
	AndroidManifest.xml
	src/com/jbirdvegas/mgerrit/CardsFragment.java
	src/com/jbirdvegas/mgerrit/GerritControllerActivity.java
	src/com/jbirdvegas/mgerrit/Prefs.java
	src/com/jbirdvegas/mgerrit/listeners/TrackingClickListener.java
Use PreferenceFragment for preferences

Much of the functionality of PreferenceActivity has been moved into PreferenceFragment and depricated in PreferenceActivity since API 11 (ICS).
This fixes those deprication warnings.
Fix window leak after changing Gerrit in preferences

By unregistering the gerrit instance listener in GerritControllerActivity
 when paused and re-registering it when resumed, the onGerritChanged
 function will only be called to refresh the tabs when there are tabs to
 be refreshed on screen.

Added some precautionary GerritTask dialog management.

GerritControllerActivity: Call PrefsActivity not Prefs in intent to open
 preferences (fix for previous commit)
Added initial GerritURl container class
GerritURL implemented; ViewPager now refreshes tabs on reloading.

The ViewPager still is caching tabs, and not redrawing the ones that are already loaded. However, it cannot have all the tabs loaded at once so with enough tab switching they will be up to date. There is (still) problems with tabs showing the wrong data (projects not being set/unset, wrong status such as merged instead of abandoned etc.). We want to force a redraw of the fragment's layout on refresh instead of tearing it down and recreating it.

With the GerritURL class, we can set individual components of the query url. This is especially when components change.

Use a FragmentStatePagerAdapter for the ViewPager and manage the tabs inside this class. This manages the tab titles and resets (recreates) one when the title changes.
Set the project globally from the preferences and add a listener for project changes.
CardsUI (library): Refresh invalidates the parent layout
GerritURL: Better string construction
CardsFragment: Remove precautionary GerritTask management as this should be done by an activity instead.
TrackingClickListener: Remove intents to startActivity due to use of fragments.
MyTabListener: Import re-ordering
Layout tweaks, optimisations and font changes

Use Roboto thin font on API 16+ (Android 4.1) devices (Testing this was too tempting).
Changed some LinearLayouts to RelativeLayout and removed some superflous layout nesting. I have tried to keep the original structure here and just refactor some layouts.
Fix some warnings about using the fontFamily attribute on pre-API 16 devices by including new values/styles.xml file.
Some font size changes - making some things slightly bigger and easy to read.

These layout and UI changes are open to review and may change. Hopefully by flattening some nested layouts there will be a performance improvement, although proper performance testing has not been done (and the impact is expected to be negligable in comparison to better data caching).
Fix getting selected tab

ViewPager monitors the current tab position so use that instead of trying to monitor the current selected tab in the ViewPager's adapter. This appears to fix issues with the current tab not refreshing (there are still other refresh issues).
Disable caching (fixes tab refreshing)

Disable caching cards till a better caching mechanism can be found. The old method of caching meant that old data (or data from other tabs) was being restored. See comment in CardsFragment regarding caching.
Added database foundations

Added initial database classes, including Projects table.
Added layout and activity for new projects listing
Added ProjectsList activity to manifest.
More Project list work.

Added Adapter and Loader for new project listing screen.
ProjectTable: New methods to reflect the nature of ExpandableListView.
DatabaseFactory: Fixed construction, added nicer constructor.
Fixed some issues with new project list

Moved the adapter and loader out into seperate files
Removed the original project listing and replaced with new one
Fix some string parsing issues
Get the root project when a child project is selected

This new project list is UNSTABLE as there are a few issues to be fixed. Currently, opening the project list does not display anythinng.