[api] Add ability to auto-detect free ports
[api] Switched to `serve-static` module
[api] Serve directory listings of folders