Generic HTTP applications approach for PHP5.3+ (inspired by Rack and WSGI)