Update function mocking to store results and pass by reference.
Update unit tests to not use external resources.

WARNING: `Unit` class no longer has the method `_hasNetwork()` it has been moved to `Integration`. A better alternative, for unit tests, is to stub function calls in `Mocker::overwriteFunction()` or full classes in `Mocker`.
Merge pull request #841 from BlaineSch/bug/integrationInUnit

Bug/integration in unit
update \lithium\net\http\Request::referer() to correctly identify local urls which contain a full url string
correct \lithium\net\http\Request::env('REMOTE_ADDR') when $_SERVER['HTTP_X_FORWARDED_FOR'] is specified to return only a single ip address as expected

see http://stackoverflow.com/questions/753645/how-do-i-get-the-correct-ip-from-http-x-forwarded-for-if-it-contains-multiple-ip
and http://en.wikipedia.org/wiki/X-Forwarded-For
Merge pull request #842 from pixelcog/dev

update Request::referer() to correctly identify local urls which contain a full url string
fix for issue #774

ensure explicit request variables with value 0 are not treated as though they are undefined.
Merge pull request #844 from pixelcog/fix-router

Fix for issue #774
Merge pull request #843 from pixelcog/remote-addr

ensure Request::env('REMOTE_ADDR') consistently returns only one IP address
Reduce the utilization of superglobals in tests.
Merge pull request #845 from jails/refactor/request-tests

Reduce the utilization of superglobals in tests.
Fix `test\Unit` to be 5.4.12 compatible.
Merge pull request #847 from jails/bug/unit-test

Fix `test\Unit` to be 5.4.12 compatible.
verify that the model provided to the Form Auth adapter exists prior to attempted use
Merge pull request #846 from pixelcog/check-auth-model

Verify model provided to the Form Auth adapter exists prior to attempted use
Fix failing tests caused by the test API changes.
Merge pull request #848 from jails/bug/tests

Fix failing tests caused by the test API changes.
Fix a difference beetween UI and console testing.
Merge pull request #849 from jails/bug/tests

Fix a difference beetween UI and console testing.
fix misnamed write method parameter in logger output adapters