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
Swagger isnt working for POST
fixes #18 executing a script with fake parameters
Merge pull request #34 from cesine/master

making api run scripts