added permalinks and fixed some bugs
Merge pull request #86 from mozilla/b2g-appname-fix

added permalinks and fixed some bugs