Added connection api and validation script

Reviewed by Bryan Higgins <bhiggins@blackberry.com>