Added -m to the encoder to allow exporting materials from FBX scenes
This is the initial check-in for the material exporting feature. (Currently incomplete)
Added FileSystem::dirname()

dirname() returns the directory name of the given path.
Changed Properties so that files can be loaded relative to the property file.

File paths in property files can now be relative to the working directory or the property file.
In the mesh sample, this means the texture path in the material file can be "res/duck-diffuse.png" or "duck-diffuse.png".
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Make newproject.sh executable
Merge pull request #960 from Kernald/fix-newproject-permissions

Make newproject.sh executable
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Merge pull request #962 from dgough/next

Updated the encoder to generate a material file (experimental)
Change release optimization level to 0 for gameplayf library due to bullet NEON.
Ensure all builds are using CDT Internal Builder for all build configurations.
Removes extra BlackBerry build configurations typically unused.
Fix warnings in TerrainSample.
Fixes for Windows support attachToWindow for QT support.
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Merge pull request #963 from seanpaultaylor/next

Next
Added the game resource path to LUA_PATH to fix Lua path resolution when searching for scripts on certain platforms.
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Merge pull request #964 from sgrenier/next

Fix to Lua path resolution.
Renamed FileSystem::dirname() to getDirectoryName
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Merge pull request #966 from dgough/next

Renamed FileSystem::dirname() to getDirectoryName
Minor fixes.
- Fixes problem in encoder with generation materials that have names with non-alphanumeric characters in them.
- Model::getMaterial(int) now returns NULL instead of asserting if material index is not valid.
Merge pull request #972 from sgrenier/next

Minor fixes.
Fixed bug in FileSystem::getDirectoryName()