Merge pull request #936 from moai/master

Synchronization of the branch.
Fix luagc_count in getMemoryUsage in moaiSim

see: http://pgl.yoyo.org/luai/i/lua_gc the value was just getting the bytes not the kilobytes.
Merge branch 'master' into 1.5-development
fix moaiimage crash when loading palletized png
Merge pull request #953 from moaiforge/pull_moaiimage_png_fix

fix moaiimage crash when loading palletized png
work around incompatibility with lua_jit and the coroutine error handling functions
Added MOAIBox2DWorld:addRevoluteJointLocal which takes local anchorA and anchorB points, rather than a single world anchor point.
Merge pull request #959 from fivevolthigh/fvh-addRevoluteJointLocal

Added MOAIBox2DWorld:addRevoluteJointLocal
sensible handling of lua stack trace printing, I hope
never run without pcall
Merge pull request #970 from moai/1.5-stable

latest 1.5 stable
curl: Use autoconf script to generate config headers on Linux

When the RUN_CURL_CONFIGURE variable is set, use the curl configure
script to generate curlbuild.h and curl_config.h instead of using
pre-cooked ones.  Enable only on Linux for now.
fix luajit and glut builds on linux
Merge pull request #980 from moaiforge/pull-linux-build-fix

fix luajit and glut builds on linux
Fix issue with build docs script giving a "too many arguments" error

This was occurring if any of the required exes' path had a space in
it because it would be interpreted as separate words rather than one
string.
Merge pull request #954 from moai/1.5-development

1.5 development
Merge pull request #955 from moaiforge/pull_luajit_coroutine_stacktrace

work around incompatibility with lua_jit and the coroutine error handlin...
Merge pull request #965 from JDaance/pr-pcall-and-traceback

I hazily recall working on this part of the code in my own branch after the split from 1.5. I am going to pull this in now then compare and resolve conflicts later.
Merge pull request #976 from zeldin/curl-configure

curl: Use autoconf script to generate config headers on Linux
Merge pull request #983 from sclark39/ropejointinterface

Fixed addRopeJoint interpreting parameters as local anchors