MODE-2294: Make server side classes serializable

Adds serialization to the server side classes.
The `LRepository` interface is no longer serializable, which means this class is not either. This line should be removed.