put server config within config function
use express as static file server
removed home-coded static file serving and changed upload directory to media