Ildipo/displaystate

addresses issue #413
implements output state saving for plot, combined plots and tables
please add a comment about why the timeout is needed.