Implemented server access restrictions.
Fixed persitence bugs.