Wip/fix sbt server merge

Make the sbt-server branch working properly.
I guess you have already noticed that all fs.js related things have gone into the ajax.js file instead so this should not be part of the PR.