Refactor document handling in projects

I remove the dependency on FileService in projects.  Furthermore, I
re-structure the CoffeeScript code by creating classes.

I also fix the anti-aliasing problem at the big arrow in the project
phases list.