Add initial controller structure for api
Fix bug when error messages render response unresponsive
Provide default http status message on errors
Implement function to check authentication
Implement CORS and method hinting
Fix auth
Include phpunit
Include basic unit tests for API
ConsoleCommand for getting data from Amica added
Update lib/amica/amica.php

fix if no info
Update lib/amica/amica.php

fixa tibaks tomas ändringar som ja kopsa över..
Merge branch 'amica'
merge api+amica+master