Refactored configuration code:

- Added support for default values
- Removed unncecessary classes
- Fixedhandling of udp reverse port