Use request.el instead of shell commands. Various small fixes.