Implemented new simpler profile Api. Yet to be tested.
Saving and retrieving profiles now implemented with tests.