Changed WeakReference into Display.getInstance().createSoftWeakRef() and Display.getInstance().extractHardRef() to work better with devices.
Merge branch 'master' of https://github.com/shannah/CodenameOneJS