monitor: Add main Runnable

Add a runnable for the monitor and some code to test it.
Also add a method to verify that an URL is still accessible by
sending a HTTP HEAD request and check the response code.