Fixes COMETD-463 (UserAgent is null in canHandshake).

Now the User-Agent is set before the call to SecurityPolicy.canHandshake().
This also removed a duplication present in every transport.
Fixes COMETD-469 (Publishing on meta channels is allowed).

Now an exception is thrown if the channel is a meta channel.