Add AppRuntime preference option

We have to differentiate at different places if we're running within a app runtime or not.

Signed-off-by: Simon Busch <morphis@gravedo.de>
Allow specific apps to access certain file system locations

Code taken from http://downloads.help.palm.com/opensource/3.0.5/webcore-patch.gz

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