added ObservableComposition class to core/observable.py and fixed a couple bugs in stateful_measure.py in the dictionary methods. Much of this code is untested