Fixed processing and passing of exceptions

Now exceptions from server methods are passed with stack trace to the client.

Please review.
Would you need ```string?.replace``` ?

Or else below you don't need ```if string and``` because if you pass null/undefined it will crash on not finding ```.replace``` in the first place.

But I think you were going for ```string?.replace``` and below ```string?.charAt``` …