Added pidfile management to ensure only one menu instance is running.
Improved pidfile handling; added support for caching of menu data array (for faster startup).