move templates into subdirectory
new modes, and CLI interface for pi4beacon.py