Added support for custom port
Fixed bug affecting ROOT_URL when not set in configuration
Merge pull request #9 from vfloz/master

Added support for custom port