Merge pull request #1 from libgdx/master

update
Merge pull request #2 from libgdx/master

Update private fork
Added a simply system to keep record of the x most recently played
OpenALSoundS (where x is the number of simulataneous sources allowed) and,
in case a new sound refuses to play, stop()'s the least recently played
sound and attempts to play it again (but only once, to prevent endless
loops in case something else prevents the sound from playing).
Added removal of disposed sounds from the buffer
initial commit of new LwjglHeadlessApplication for a headless libgdx,
some LwjglApplication cleanup
add Apache Header
Workaround resume/pause deadlock in Android by killing

https://github.com/libgdx/libgdx/issues/904

Repro steps:
1. Open libgdx app.
2. Open Android Recent Apps.
3. Double-tap Recent Apps with ~500ms between taps.
4. Tap Recent Apps once to bring libgdx app back -- if it comes back with no ANR, repeat steps 2-3.

As an interim bandaid we are killing the app if pause takes longer than 4 seconds (ANR is 5 seconds).

With this patch, the app closes during pause instead of ANRing.
fix natives for LwjglHeadlessApplication
new Application type HeadlessDesktop for LwjglHeadlessApplication
Fixed atlas index
Index is always (gid-1), so the processing order of the tile sets does not matter.
Fixed rare crash on Keyboard.isKeyDown

Fixes #1090
Experimental: Attempted fix for rare ArrayIndexOutOfBoundsException

This might fix #1095 It will at least prevent crashes in those weird situations.
made number of supported touches a constant...
Merge branch 'master' of https://github.com/libgdx/libgdx
Merge pull request #1091 from Unkn0wn0ne/patch-1

Prevented rare crash on Keyboard.isKeyDown
Merge pull request #1086 from hneuer/tmpack

TiledMapPacker: Fixed atlas index
fixed issue #1086, order of glViewport/fbo bind
Merge branch 'master' of https://github.com/libgdx/libgdx
fixed issue #1002, added comment about clamping to music/sound
Merge remote-tracking branch 'origin/master' into patch-3