Fixing a few warnings and ensuring everything is initialised correctly.
Removed extra typedef that caused build failures with some earlier versions of gcc.
Refactored to reduce duplication - rename the function signatures for payloads and middlewares to ensure a generic macro can be written to load the functions from both. Fixed a bug in the mamalistenc example app.
Merge branch 'feature-librarymanager' into feature-entitlementbridge
Updated entitlement manager to use common function registration macro.