Update connect and static middleware
Make build compatible with shio

Separate app build from config build (prod only).