Refactoring code.

- Replacing TaskKit class with KeyManager and AccountManager classes.
Converting post data to json last.
Encoding url(s).