Fixed edge cases and got all test cases working
Before adding structure_type
Added data types selectivity (sensor_data, habits, checkins). Added data
StructureType to all data packet types and the local cache. Added
routines to selectively return specific types of data structure types.