xor encode util, initial version (not working so far)
fix some templates, prepare for DBI integration
Merge branch 'cipher'