refactor source routes and test just like styles
Merge branch 'moar-tests'