added environment and serialization switches

- Added dev/prod switch to config.yml
- Added serialization switch to config.yml
tell Dancer that it's sitting behind a proxy
replace hardcode file path with settings.appdir
added routes for all, search and original index