Add apiUrl module and tests

provides a check() method to test if the api url is
correct