Error handling changed. Client app can register for a signal when error handling.
Some error handling fixes + urls are set as constants.
Small naming fix.