Switching all "File"s to "Path"s

They were erroneously switched before...
Creating constants for networking on core module

Renamed MessageType to Messages and created Ports class for ports used by
servers on master and slave applications.