fix to gridfs file serving, posts date and socket ssl config