added API endpoints and corresponding angular service, added resolve/fetch to file download page