Added applyTemplate function
Tri-state template
Further reduce Xposed dependency
Merge pull request #1395 from jpeg729/template

Added applyTemplate function
Added template for on demand restricting

Closes #1376
Refs #1395
Updated changelog
Updated changelog
Updated changelog
Fixed duplicate usage data entries
1.99.49 test
Added missing file
Updated changelog