Fix problems with palmGetResource

* enyo sends paths with file:// prefix which we have to drop before accessing the file
* respect second parameter of palmGetResource to convert result to expected type
* check if access to requested file is allowed for the application

Signed-off-by: Simon Busch <morphis@gravedo.de>