Merge pull request #1 from lextoumbourou/master

Ensure query params are checked if version isn't in Accept header
Added support for basic auth