process port ENV variable for heroku
added features for mqtt/protobuff