Adding Blackberry platform detection
Fix error when creating a Response with status "foo bar"

Say your app does `return Response("baz", status="foo bar").

In wrappers.py, when the status property is set, if it can't be parsed
to an int (line 753), the status code is set to 0. However, in
serving.py lines 115, 116, we try to parse it again to an int which
fails. (again)

This fixes it by changing the status code to 0 as before and then the
status to "0 %s" % status. (-> "0 foo bar")
This can then be parsed properly in serving.py. (though admittedly, the
question is open to know if it should continue at all if Response() is
called with such a status in the first place...)

Signed-off-by: Timothée Boucher <timothee@gmail.com>
Fix error when creating a Response with e.g. "404"

If you call Response() with a status of "404" as a string
(`Response('foo', status="404")`) without the reason as part of the
string, the setting of the message `msg` will fail because
`status.split(None, 1)` will have only one value and can't be unpacked
to code and msg.

In wrappers.py, the status can be parsed to an int (line 753),
so status is set to (string) "404" and status_code is set to (int) 404.

RFC 2616 allows for an empty reason message to be sent. Without this fix,
you can't actually sent an empty message and you'll get an error if
you're trying to build a Response object based on the response from
a third-party server that could send an empty reason message.
(though probably rare, it happened to me, which is how I came across the
problem)

Signed-off-by: Timothée Boucher <timothee@gmail.com>
Make lowlevel parsing interface not file for empty transmisisons.  This fixes #366
Fixed a bug with iterlistvalues on MultiDicts.  This fixes #252
Merge remote-tracking branch 'Timothee/response_status_fixes'
Added a few idempotence URI/IRI conversion function tests from #199
Merge pull request #201 from shaunduncan/master

Adding BlackBerry as UserAgent platform
Fixed misspelt header name.  Fixes #98
Fixed some tests on 3.3
Corrected incorrect tests on Python 3.3
Fixed reloader being broken by switching back to thread module