removed unused imports
cosmetics
started url builder rewrite
cont. apiurl rewrite
finished url builder rewrite