removed FileService and ResourceService in favor of static methods sendFile and sendResource