Adds partial support for handling screen rotations. will probably not be implemneted
Fixes windows width to be dynamic and gives support to list subdirs in phonegap