The contact import tool makes use of a spreadsheet that the client must fill in
with all the agents and linked contacts that those agents have. This spreadsheet
may then be converted and imported into ResRequest.

This involves three phases: 

 - Data entry and clean up. During this phase the client and/or a
   representative from ResRequest will populate the import spreadsheet with a 
   cleaned up list of all agents to be imported alone with the agent contacts.
 - A Development phase where the tool may be run a number of times
   and any issues found may be corrected.
 - During Deployment a final run is done and the resulting database is
   installed live for the client.

[Development]
1. Install this tool into the utils sub-directory of the ResRequest code.
2. Download and import the client database into which the contacts are to be
   imported.
3. Convert the contact spreadsheet into a CSV file (see agents_template.csv)
   called agents.csv.
4. Use the import.sql script to import and convert the CSV file.
5. Open utils/contact_import/ in the browser and use the tool to complete the
   process
6. If any issues are shown, take note of them.
7. Run the tests in import.sql (they are commented out) and note further issues
   found.
8. If any issues have been found, correct them in the source spreadsheet, drop
   the database and start again from step 2.

[Deployment]
1. Schedule a time when the client is able to log off their system for long
   enough to do the import offline and replace their database on the webs and
   any offline environments they may have.
2. Run a data transfer on all offline environments and disable automated data
   transfer.
3. Download a copy of the client database and run the import as per the
   Development phase.
4. Upload and install the new database on the webs
5. If there are offline environments, clear transfer information, dump the 
   database, and install on each offline environment.
