Fix base64 padding

- Use len rather than RuneCount since there are no multibyte chars in base64
  strings

Signed-off-by: Joseph Palermo <jpalermo@pivotallabs.com>
Close the response body
Use a connect timeout whenever making connections
Clean up even more naughtiness

A little birdie told me about  https://github.com/cloudfoundry/cli/commit/2dc2f44fd40f4efa9daa4683e09cda585820994c and I thought ... hmmm ... it looks like we might have
missed a few words here and there.

I think a lot of this is open to interpretation, but I mostly followed the work
of @lvarvel and @crhino and found other "words of interest" around their diff.
Merge pull request #224 from tjarratt/naughty-by-nature

Clean up even more naughtiness
Generate FakeLogsRepository via counterfeiter

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Wait to show instance status until log session is flushed

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Merge pull request #221 from jpalermo/master

Fix base64 padding
Merge pull request #222 from fraenkel/closeBody

Close the response body
Added '-s' flag to service-access command.

[Finishes #67264988]
Fix travis build by deleting obsolete tool
Merge pull request #225 from cloudfoundry/flush-log-messages

Fix inter-woven output during start
Merge branch 'connectTimeout' of https://github.com/fraenkel/cli into fraenkel-connectTimeout

Conflicts:
	cf/api/buildpack_bits.go
Merge branch 'fraenkel-connectTimeout'
Make Travis script clean up and not do obsolete things
Another attempt to fix Travis
Bump godep for codegangsta/cli
Simplify Travis script
Limit GOMAXPROCS in a desperate attempt to make Travis happy
Sorting User Provided Environment Variables

- Turns out JSON returned from API is preformatted, don't need to split
  on the new lines here.
- Also minor refactor for cleanliness.