Make default port a parameter
Add `open-file` API
and update the related HTTP machinery.
Make `alist` the first parameter
of all the alist handling functions
Fix commands broken by the previous changes.