Use an in-memory sqlite database in test mode.

This speeds up the tests a bit without any tradeoff that I am aware of.
Fixing specs which were trying to make net calls
Ignore crt files.
Update Rails to 4.1.7
Merge pull request #235 from CenturyLinkLabs/chore/in-memory-test-db

Use an in-memory sqlite database in test mode.
Write certificate on read instead of write.
[#81019816]
Ensure the contents are actually persisted in the temp file.
[#82238400]
Split DeploymentTarget.deployments into a module.

I'm about to add another related resource for metadata, so this seemed
like a good idea. There were a number of things at the top of the test
that only pertained to the deployments resource, so that is probably
easier to read now. I almost moved the cert-related items into their own
concern but stopped myself.