Implemented ability to upload files to phonegapdemo amazon s3 bucket. Fixed minor issues.