Cleaned up the code in the /company endpoint.

- query string is now escaped properly
- removed the index variables (count, outerCount, etc)
- Fewer loops
- Simplified some of the DOM selectors
- made a variable for the commonly used regular expression
- It might be more readable to newcomers.
- Also fixed an issue where when the address is blank, it was filled
  with spaces, so now that gets trimmed.

Looking over the data and running the integration tests seems to reveal
that it's all still working
Merge branch 'comp_cleanup' of git://github.com/arnorhs/apis into arnorhs-comp_cleanup
MERGE