helpers: Implement a basic isValidURL

Signed-off-by: Robin Hallabro <robin.hallabro@sveabyran.se>
core, helpers: Cleanup from earlier commit

Signed-off-by: Robin Hallabro <robin.hallabro@sveabyran.se>