fixed regex to allow spaces
refactored protocol matching
merge config and options in base extension
cleanup alpha theme