Convert to SDK 2.0

Port to SDK 2.0
latest commit f80f600313
@jmlaitpebble authored