Fixed #1177 and #1209: Added new requirments for portable: setuptools (pkg_resources) and jsonfield.