Supporting proxy and changed authentication from id/password to token. This change helps to close #1, #3.