fix(core): Rework SDK for new API.

Signed-off-by: Johny Jose <johny@playlyfe.com>