try to fallback to pysqlite2.dbapi2 as sqlite3

for situations where Python is built without sqlite3 and
can not easily be changed, it would be nice to still be
able to get history with pysqlite2.
Add shell_futures parameter to run_cell to allow running code without sharing __future__ imports.
Test __future__ environments
Better support compiling cells with separate __future__ environments
Fix unrelated test.

nose.tools no longer has a fail() function
Merge pull request #1671 from takluyver/back-to-the-future

__future__ environments
improve patience for slow Hub in client tests

adds a first step in `_wait_for_idle`,
where it waits for all tasks to arrive before waiting for
no tasks to be running.  On a super slow machine,
it was possible for `_wait_for_idle` to return prematurely,
before tasks had even started.

ought to close #2807
remove dead utils.upgradedir

closes #2767
remove nonfunctional `-la` short arg in cython magic

short flags only allow one letter, so `-la` is the same as `-l`,
which is already taken.

closes #2709
Merge pull request #2810 from minrk/rmupgradedir

remove dead utils.upgradedir
Merge pull request #2812 from minrk/la

remove nonfunctional `-la` short arg in cython magic
Merge pull request #2808 from minrk/parallel_wait

improve patience for slow Hub in client tests

adds a first step in `_wait_for_idle`, where it waits for all tasks to arrive before waiting for no tasks to be running.  On a super slow machine, it was possible for `_wait_for_idle` to return prematurely, before tasks had even started.

closes #2807
update release/authors

- don't tell people to email Fernando every time IPython crashes :)
- supported Pythons updated to remove 3.1, add 3.3.
- `IPython.__author__` is now just ipython-dev, rather than assorted individuals
- don't mention old, unsupported Windowses (I would argue that XP should be dropped as well, but I know that won't fly)
in %edit, don't save "last_call" unless last call succeeded

avoids failing calls to `%edit` from killing future `%edit -p`

closes #2466
Moving examples to the top level.
First go and reorganizing the examples.
Updating MANIFEST.in for new examples location.
More changes to example notebooks.
Finishing the display example notebooks.
Adding Cell Magics notebook.