Support string or JID in lookup
Added callback on backend calls.
Added test string parsing and test.