Refactor Port Mappings

Now I am using a dictionary based port mapping. This way its faster to
lookup the port in the list.  Makes the code neater and keeps from doing
O(n^2) operations, now we are at O(n).
Add Screenshot