Few bugfixes:

* unclosed input stream
* bug in handling codebase attribute
* set applet width and height to applet tag attribute values