extracted a method for faraday connection to pivotal api

Signed-off-by: Andrew Deitrick <ajdeitrick@gmail.com>