move atmosphere.js to maven, refactorn Controller