added http_get_api and http_post_api in common.js

helper methods to work with the couchbase server