Adds encounter logging functionality to the mobile api. Refs ticket #346