correct some bugs

- add upload function working with a path on the filesystem.
- implement app:// protocol
- add security level (cannot access node.js from apps, nor the system
calls.)
fix some MAC OSX compatibility issues
Merge pull request #1 from ShopBotTools/app_manager

App manager