added allowCrossDomain middleware feature
removed unnecessary files
fix mongo-api, action resource and tests