Modify some code

add ResourceManager support
add String helper
add File Dialogs for Windows and Mac OSX
fix some bugs