refactor config.ru and add a verification of needed configuration
fix configuration verification and add a --config option to the staticd utility