Validate port of development server

This commit makes it so that even if PORT is defined to some wacky value it the development server will still work out of the box. It will also log an error letting the user know that there port is configured incorrectly.