JSONP support
Coding style (same white space as original file)
Use $this
Merge pull request #62 from ozh/ozh-jsonp

JSONP support
Use $_SERVER instead of getenv.

This partially reverts cec890c. In addition to other cleanup the commit changed
from using $_SERVER to getenv. As @kafene said on issue #21, getenv provides a
nicer API making the code clean. I.E.

    $val = getenv('val') ?: 'default';

Instead of:

    $val = isset($_SERVER['val']) ? $_SERVER['val'] : 'default';

Although this is true unfortuantly it is less reliable. Using getenv in this
way assumes the application is running under some sort of CGI interface or
an interface that is simulating the CGI interface.

While this assumption is very often true it is not always true. For example
when using [PHP built-in webserver][1] (useful for development) getenv will
return false for most of these values even through $_SERVER is populated. I
believe also some interfaces on Windows don't populate getenv.

This means that flight is not usable in those environments. By partially
reverting cec890c we re-enable flight in those environments.

For Engine.php and Response.php I just directly reverted cec890c. Since request
makes so much use of getenv it seemed wise to abstract the conditional checking
to keep the code clean via a private function.

The tests were also updated to populate $_SERVER instead of the environment
via putenv.

[1]: http://php.net/manual/en/features.commandline.webserver.php
Merge pull request #70 from eric1234/noenv

Use $_SERVER instead of getenv.
Formatting.
Dispatcher should check for valid callback.
Added additional options for JSON methods.
Fixed error with calling stop method.
Fixed reference to $this.
Allow HTTP method overriding.
Sending a response should not exit the program.

We need to allow events to fire after the stop method is called. This will allow users to clean up resources, perform logging, etc.
Response should only be sent once.
Reverted response handling.

Caused too many conflicts with other methods. Clean up should be done before the stop method is called.
JSON method should send a clean response.
Converted JSONP config into a parameter. Fixed incorrect content type.
Added section about JSON. Added some missing info.
Bump version.
Added ability to get splat from URL pattern.