Huge method update

Implemented almost all methods, except a few that needs to be
implemented  core side.
Hooks still have to be implemented as well.
Also did some minor cleanup, nothing fancy.