Separated out MSensor, added TASensor class

Config now saved after Bottle stops as opposed to before