Merge pull request #18 from jackmakiyama/basic-structure

Create a tests and implementations of application and front controller
Autoload Tests on "autoload-dev" key
Documment the class
Refactor on tests structure
Clean the front controller
Add Zend Framework Request Object
Implement response for Accepted Types

- Application::run() use Accept to send a response correctly.
- Use Zend\Http module to make easy get Request and do Responses.
- Do a basic refactor on Application to accept a `RequestInterface` object on constructor.
- Implement a Chain of Responsability to resolve when is able to response a Request, and create 2 simple response types for `Json` and `Plain Text`.
- Create a Sender Layer to output the Reponse. We need to create this class because ZF2 haven't this service on `Zend\Http`, It's only able on `Zend\Mvc` to make dispatch.
- Remove a line before declare namespace on index.php file. Just for fun =D
Hot fix PHPCS, EOF and DocBlocks
Add phpcs to the composer dev dependency and create a makefile
to turn life ease
Fix returned type docblock on CreateResponse::to() method and fix
phpcs on Application class
Add scrutinizer yaml config file to spect code on each commit or commit group.
Fix return types and interface of params, identation are fixed in any classes too.
Nothing much relevant.
Replace spaces on yaml config file
Remove external tools coverage, considere use travis CI
Upgrade composer.json to PSR-4
Rename method 'tryResponseType' -> 'handlerResponse'
Remove unneccesary test
Rename Sender -> Send to make more sense to dispatch a request outside Application class. The new renamed class Send has only a static method to send headers of a Request Object and your content too.
Rename Application::run() -> Application::fetchResponse(), and It's return a Instance of Request.
Front Controller works with new modification on Send to dispatch the request to the client
Add behat as composer dependency