manage envs to not copy references and apidocs in dev mode
document CORSFilter usage. fixes #1