Add trace api function

Changes our src/traceroute.py to src/core.py. I think all core functionality should go here.
You can now get a traceroute response by going to localhost:port/traceroute/<destination_url>

This change also fixes a minor issue where the traceroute response was returning the destination IP as the first result and last result.