added authentication with ticket and wampcra (requires POCO 1.5.3 for PBKDF2); fix logging/error handling