Refactored routes as index.js was becoming a bit of a god object
resolved conflicts
resolved further conflicts
replaced missing profile dependency