Permission sample

This PR includes one sample on how to use permission API in C extension implementation. It is based on echo extension from xwalk/extensions/test