now screen.w and screen.h give back size
and screen.initialized says if init() was succesfull
plus the array layers[] contains the list of currently added layers
So javascripts can know if they need to initilize the screen
(definining the size as well) or if they have been provided a
running screen and there is no need to change size or reinitialize it
Instead of being forced to always specify the type
The screen_js constructor now behaves properly
(reusing already initialized screens properly ...so also the ones
not created by the javascript, where jsobj is still NULL while
initilized is true)
now screens are also present in JS
still tasks pending:
backwards compatibility with scripts
resolution of multiple screens in startup/reset logic
testing
testing that multiple scripts can be included from a main one
removed js garbage collection in controllers (was called after script load)
included JSON as a standard library (it works!)
modified example scripts to avoid namespace clash