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.
Updating the android run-host script so that the init.lua file gets run when working directory is .

When the android working_dir was "." the init.lua was not run because
its directory was not determined properly.  Added a check for a working
dir of "." in the run-host and skipping the default directory
determination if found.
Fix for infinite loop in MOAITimer ping-pong mode

When the time is equal to the end time, the old version will go into an
infinite loop.
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
Added UNIFORM_WORLD_VIEW uniform to MOAIShader which is bound to worldView matrix (worldViewProj without projection)

Signed-off-by: Josh Handley <jhandley@lkc.com>
Protected windows-specific changes in 1a858c7be856d7fd8c440ec7290adcf1af8e7da8 to break build on other platforms.
Added setType to MOAIBox2DBody

Signed-off-by: Josh Handley <jhandley@lkc.com>
fix glut fullscreen bug (app would not stay in fullscreen mode)
Invalid null check in JSON parser caused infinite loop when encoding lua numeric arrays
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.