make server's port configurable
adding CORS support and Q for asyncronous API calls

with promises
fixes #18 Adding CORS request to call pipline API
renaming swagger sample api from pet into pipeline