Add route for getting port info

Also cleans up the route handling