info yun vs yun rev 2

Hi i have an Arduino Yun from long time... Today i see some limitation related to the old openwrt software that runs on (old) Yun.
For now the worst limitation for me is NGINX version that doesn't support socket connection.

On the Yun rev 2 (i think) this software comes updated with an younger openwrt version..
Someone that owns an Yun Rev 2 can tell me which nginx version is installable ?

And one more question: a sketch writed for Yun, is it uploadable to yun2 without any edit? Are the libraries equal ?