Serialize a complete PHP application's state