Optionsresolver refactoring

Big refactoring of all the code involved, mostly integrating OptionsResolver workflow into the API payload classes. Also added API command to directly access each API method from a single command (along with the ``payload`` option)

The first API payload type available now is ``search.all`` (class: SearchAllType). More will be coming soon.

- [ ] Add rest of API methods as payload types
- [ ] Review, merge, final review, and increase tag to 1.0