Automatic detection of context path for REST calls (localhost and 8080 still hard-coded)