isValidURL refactored to utils.js. isValidURL tests. room almost all implemented and tested