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
Merge branch 'master' into cydia-substrate

Conflicts:
	src/biz/bokhorst/xprivacy/XHook.java
	src/biz/bokhorst/xprivacy/XParam.java
	src/biz/bokhorst/xprivacy/XPrivacy.java