Extract codes to read droonga-engine's configuration
Allow to specify port numbers via environment variables PORT and ENGINE_PORT