refactoring of httpclient and upload manager. removed static declarations, deleted httpclient (not necessary as a class), fixed comments and cleaned up the code