Merge pull request #153 from tomclement/master

Adds maven build profile for calabash tests
rapidftr/tracker#54 introduced a form object and refactored the reloading of form sections.
Merge pull request #154 from ctumwebaze/master

using custom fields for enquiries
@ctumwebaze @mwangiann General refactoring of the FormSection functionality internal API.

As part of this refactoring;
1. All code that was dealing with form sections in the RapidFtrApplication was  moved to the FormService.
2. All the calls for forms were directed to the FormService which is injected as a dependency with guice.
3. Moved the default form sections from the raw folder to a resource file in the package to support testing without robolectric
@ctumwebaze, @mwangiann rapidftr/tracker#156 validating an enquiry

This fix adds validation step before saving an enquiry and ensure that atleast one field is filled in before it's saved.
Increasing timeouts for calabash and removing flaky test
Merge pull request #155 from ctumwebaze/master

General refactoring of the FormSection Functionality and internal API
Merge pull request #1 from tomclement/ctumwebaze-master

Increasing timeouts for calabash and removing flaky test
Merge pull request #157 from ctumwebaze/master

Fixes flacky failing tests
@ctumwebaze @mwangiann rapidftr/tracker#152 changes the enquiries data structure on mobile.

This fix removes the hard coded criteria field on the Enquiries data model and fixes a bunch of failing tests.
Merge pull request #158 from ctumwebaze/master

changes the enquiries data structure on mobile.
Add retrying failed calabash scenarios
Merge pull request #159 from tomclement/cucumber-reruns

Add retrying failed calabash scenarios
@ctumwebaze rapidftr/tracker#161 show view of saved enquiry.

previously when a user created an enquiry, they application shows a new blank form. However this is not desired.
So this fix changes the flow to show the view of the newly saved enquiry.
Merge pull request #160 from ctumwebaze/master

show view of saved enquiry.
Adding test automation for sync on mobile
Merge pull request #161 from tomclement/automation

Adding test automation for sync on mobile
@ctumwebaze @mwangiann rapidftr/tracker#161 shows the view activity of the activity rather than the edit activity after saving an enquiry.
Merge pull request #162 from ctumwebaze/master

Shows the View Activity rather than the Edit Activity after saving an enquiry
@ctumwebaze @mwangiann rapidftr/tracker#162 synchronizing enquiries to the server

This issue was due to a database error. After a successful sync with the server, the synched record
could not be saved because the database was not open and therefore the state of the local record could not be updated to synched.
however, the record is saved on the server.
Subsequent synchronization for this record failed because the client attempts to have the record created on the client yet it already exists
so the server responds with a forbidden response code.

to fix this, we ensured there was a singleton instance of the EnquiryRepository and removed any calls to the close method of the repository
thus ensuring that the database is never closed by anyone using the same reference of the repository.