Add notice API to check tokens (bug 916372)

This also adds a simple config system
Merge pull request #15 from kumar303/notices

Add notice API to check tokens (bug 916372)