check for sub id in publishrequest, more debug

this enables subscription support against prosys example server
Can we just merge as is for now?

On 26 November 2014 at 10:27, Olivier Roulet-Dubonnet
<olivier.roulet@gmail.com> wrote:
> yes, this was just a quick fix to enable tests. We should split between
> nodeid and expandednodeid.
> But currently I am focusing on finding out where the bugs are that make
> test_highlevel.py crash or hang
>