Added middleware Sendfiles for servers which don't support X-Sendfile. Also cleaned up after code inspection gave a few warnings.