Separate automated tests and examples

- Keep automated tests to be run with py.test in './tests/'
  and examples in './examples/'
- Rename test to adhere to 'Conventions for Python test discovery'
  (http://pytest.org/latest/goodpractises.html#test-discovery)
[#45] replace http.py with the Requests library

- Note the following exception replacements:
  mwclient.errors.HTTPError -> requests.exceptions.ConnectionError
  mwclient.errors.HTTPStatusError -> requests.exceptions.HTTPError
  mwclient.errors.HTTPRedirectError -> requests.exceptions.TooManyRedirects

- Removed the `compability.old_upload` method, which was used for
  MediaWiki < 1.16.

- Requests automatically decompresses gzip-encoded responses, and
  does its best to decode response content to unicode when possible.

- [#53] Using the Responses library to mock http requests in tests
Set version to 0.7.0dev
Simplify setup and add version test
Don't crash on null edit

Null edits won't include 'newtimestamp' in the response
Doc and argument checking for upload method

- Add docstring
- Check arguments
- Rename 'sessionkey' to 'filekey'. Since the existing implementation
  was broken ('sessionkey' was sent to the server as 'session_key'),
  it is expected that this rename will not break any existing tools.

Conflicts:
	mwclient/client.py
Update .gitignore
Try to preserve backward compability
Retry on internal_api_error_DBQueryError

See https://bugzilla.wikimedia.org/show_bug.cgi?id=58158
Travis has dropped Python 2.5
Simplify running tests

- A single command `python setup.py test` will now install test
  dependencies, make an in-place build and run the tests.
- The setup script now requires Setuptools. A message will be printed
  if it is not found.
Fix setup.py test and add tox.ini

- For some reason, 'pytest-cache' isn't found by setup.py if not
  specified explicitly in 'tests_require'
- Add tox.ini so tests can be run using tox if desired
- Update test to not be dependent on serialization
Don't require unnecessary dependencies

- Require 'ordereddict' only on Python < 2.7
- Don't require 'simplejson'
add some more patterns to gitignore
fix links in readme from md to rst
typo
add note about running tests, as suggested in #56
fix PEP8 issue (trailing whitespace)
Merge branch 'master' into requests

Conflicts:
	mwclient/page.py
Update readme and release notes

- Increase version requirement from Python 2.4 to Python 2.6, and from MediaWiki 1.11 to 1.16
- Add three entries to release notes