improve server: shutdown hook, read config, build single jar w/ dependencies