JBIDE-16931 CordovaSim: Creating ServerStorage for correct server shutdown. Refactoring