Move JSON representation of Sessions class into its own PHP file.