move github-url generation away from the view

Still not found the cb() bug in npm and in order to clear my mind, I refactored a bit in npm-www