Began test cases for state reads.
Refactored tests so that mock state files can be written into the startup
and then cleaned automatically with tearDown(). Added yaml parsing so that
stateread outputs a 3-element dictionary with the necessary information.
State and message are stored as strings and timestamp as at
datetime.datetime object.