[#51176483] Fix alpine 'delete work flow' url and handle 'connection refused' error.

- Make Alpine::API a class instead of a module.
- Refactor #delete_work_flow method
- Use FakeWeb in tests instead of Net::HTTP stubbing.