Implement JSON serialization of main objects

Since some of the qsymm processes aren't deterministic (#33), the best practice is to serialize different qsymm objects on disk in a standardized manner.

I propose to implement a .to_json method for all the standard objects.