Update: Added saving/loading/autoloading system. And you can un-restrict items now. See OP for details.
I've tested these new features to ensure they work, but I made some final tweaks that I didn't test. Please tell me if anything isn't working as expected!