Mock an HTTP server and add test cases to test state management (issue #1)

Add WireMock dependency with the "standalone" classifier to avoid
conflicts with Android's Apache HC version