Fix a handful of configuration issues

Fix sync configuration to properly recompile. Also fix photo handling so that /photo is not handled by static handler.