Switches http and json libraries; adds streaming and file upload