Cleaning and separating urls to make apps pluggable