fix the way build files are made and downloaded

- if a file for a build does not exist 404 instead of trying to create
- create profile.ccpr *on build* not when it's first accessed!
- fix some content type / content length stuff