Add resource file upload size limit when publishing

MANUAL-UPGRADE: Size limit setting "file-upload-limit" should be added
to configuration file (e.g. development.ini)
Ok, so let's leave the ``args['data'] = psycopg2.Binary(data.read())`` after this you can get the file size using ``data.tell()``.