Persisted data file now correctly called data.json
fixes #18: debug module is imported lazily so that an X display is not required if the module isn't going to be used