Related-Bug: #1390392

Added ability to specify a custom function for checking menu access (accessFn)

Change-Id: Iafecfa12963562692b0256df1389f326c58c0607

Change-Id: Iacad7a1066c5984fedd80288425256548e2b54a0
Merge "Related-Bug: #1390392"