Add support for minifying URLs

#153
If the URL is invalid for any reason, it will throw an error.