Adding a *nix run script for samples.

Adding run.sh to each of the samples.  It mirrors the bat script
already provided for windows.
Fix to MOAIParticlePexPlugin where open GL flags were being fed to MOAI core which now uses the wrapped zgl* versions of flags and opengl functions causing an assert to trigger when _remapEnum was called.
Also, MOAIParticlePexPlugin was commented out in host.cpp
Improved visibility settings

Improved operation of the display.

* Improved the problem of reflection of the display is delayed.(# 604
Bug)
* Set immediately after the SetVisible, to solve the problems that
ATTR_VISIBLE does not reflect.
* Enable the Visible of MOAIParticleSystem.
Fixing issues with determining a textbox string bounds.

Currently the GetStringBounds returns a rect which is not correct.
Drawing the textbox with the rect provided doesn't create a textbox
with the text laid out as expected.  Fixing some bugs in the build
layout of text box designer and an issue with MOAIGlyph::GetRect which
was causing these problems.
Playhaven iOS integration
Add getAlignment method to MOAITextBox

Adding the getAlignment method to MOAITextbox, useful for when one is
resizing a textbox, you can rettrieve its alignment and then re-align
it after the resize.
add Android languageCode and countryCode to MOAIEnvironment

Code originally authored by An Nguyen at MeYuMe
revert changes to Moai.java, this was the distribution file

The correct file is ant/host-source/source/project/src/moai/Moai.java
add AKUSetDeviceLocale to the host-source version of Moai.java
remove bad space char \160
Protected windows-specific changes in 1a858c7be856d7fd8c440ec7290adcf1af8e7da8 to break build on other platforms.
Updating android host to work after the reorg

The android host was broken after the reorg and was never updated to
fix this.  In the main Android.mk, removed unused uscore, reordered the
static_libs to fix some linking errors with zl and whirlpool.  Also had
to change the typedefs in whirlpool to fix a type conflict with zltypes.

Modified the android host to add similar initializations as the ios
host that are required after the reorg.  Also, something was broken in
MOAIGfxDevice which didn't categorize Android as an OpenGL ES host
which would cause only a black screen to be displayed.

Left to do:  Android host printing is still broken due to some linking
problems.  I may take a look into that next.
Twitter functionality for Android

Redoing the twitter for android branch based on the development branch.
This branch should be pullable.  Fixing a bug in OptionalComponents.mk
pointed out in the previous pull request.
Fixing tapjoy flags.
Avoid Lua stack overflow when picking lots of props

According to the Lua manual, "you are responsible for controlling
stack overflow", especially when pushing elements onto the stack in
a loop (see http://www.lua.org/manual/5.1/manual.html#3.2).

Pushing too many elements onto the stack does not crash immediately,
but will corrupt the heap, potentially causing random crashes later.

MOAIPartitionResultBuffer::PushProps() pushes props onto the stack
in a loop, so it must make sure that the stack is big enough to
accomodate them by calling lua_checkstack().
Avoid Lua stack overflow in MOAIPathTerrainDeck:getTerrainVec()

See previous commit for details.
Avoid Lua stack overflow in MOAITouchSensor:getActiveTouches()

See previous commits for details.
Updating *nix run scripts according to spacepluk's comments

Quoting the moai bin in the check, changing bash to sh.  Also exiting
on error.
Fixing IOS Sendmail functionality

The arguments are being pulled from the wrong indexes.  Also fixing
some leaked objects by using autoreleased objects.