Completed pbm and uim conversion.
Added extern error message when Jansson functions puke from invalid input to notify user.
Swapped free to g_free to be consistent.
Added temporary null checks for strings that try to pass null values to jansson. These will temporarily return "(null)" if null. Need to find a better way to do this, as Jansson does not want to accept null strings.