improve rest_api config

- remove static_folder config (useless)
- move wsgi_socket to rest_api config