Changes in order to conform with the new version of couchbase lite

Warning : Not tested yet.
Now using NSURLSession instead of NSURLConnections in order to conform with iOS 7. Added the type:phone field in the connection request.
Implemented an error handler singleton.