Pass context in callbacks

Modified callbacks to pass the lwm2m_context_t * back.
Added a void * userdata field to the context so that apps can store their own data and get at it from callbacks.