Introduce nxt.allowedToForge property
Fix signature verification in js when on public nodes