libfunctionpatcher stuff is persistent from plugin init time to plugin teardown time. but the memory replacements DO need to happen on every launch, so rearrange things a bit.
This copy-and-paste error was a culprit of the bug described in issue #55.
It made the Account Settings applet on Wii U softlock during its initialisation, forcing the user to power off the system.
The applet now works again. However, trying to access it a second time without rebooting still freezes the Wii U, which is another regression listed in issue #55.
This is necessary for a future Aroma feature. This also makes more clear
the immutability of the patches that Pretendo requires, since they
cannot be reverted easily.
All patching code is now managed inside the module, which the plugin
triggers by calling an exported function from it. The WWP reset code
remains within the plugin as it isn't strictly tied to the patches.