Refactoring

* Changed owner_id and def_category_id of AnyDoAPI class at __init__() to class method,
  so it is too hard to write mock test.
* Changed using mock module to httpretty module, so the latter is very easy to use.
* Added unit test for anydo.error and anydo.api.
* Removed unnecessary module importing.