Mac app: Fix a startup crash if the user doesn't have a ~/.profile file
Mac app: Create a minimal library with Spyder modules inside Resources

- The idea is add it to PYTHONPATH instead of the main app lib to forbid
importing modules inside the app when the user changes interpreters.
Mac app: Copy Sphinx docs generated inside the mercurial tree
Mac app: Don't run macdeployqt because it's not needed with py2app 0.7
Mac app: Make getting env vars more robust

- Under some circumstances the app was crashing while running _get_env,
so we're enclosing it in a try/except statement.
- Besides, we're also checking for the presence of '/etc/profile'
Mac app: Don't create spyder.lock to verify a single instance

Update Issue 1344
Status: Fixed

- Since the OS is in charge of maintaining a single instance, we don't
need to create spyder.lock to check it.
utils/programs: Run is_module_installed for external intrepreters on a special temp dir

Update Issue 1365
Status: Started

- The idea is to maintain this temp dir until Spyder is closed to avoid removing
the script used to check for module presence while it's still running.
- Register an atexit call to remove it on the main window.
utils/programs: Use the file descriptor returned by mkstemp to open the script used in is_module_installed

Update Issue 1365

- This is the right way to open it. Before we were opening a new channel to
write on that script and never closing the one created by mkstemp.
- Without this, we were unable to remove our TEMPDIR on Windows.
utils/programs: Make is_module_installed return True if subprocess fails

Update Issue 1365

- Try to not take a wrong decision if subprocess doesn't exit correctly
External Console: Fix PyQt API#1 errors in change_pystartup and change_qtapi

Update Issue 1365
External console: Move cleanup_connection_file function out of set_ipykernel_attrs

- For readbility I'm adding it as a console's method.
External Console: Minor reorganization of its imports
IPython Console: Not all IPython Consoles will have meaningful namespace browser.

IPyton Consoles that are attached to external kernels will not have a
valid namespace browser, and so an attribute error traceback was generated
when trying to access the autorefresh attribute of a NoneType object.

Update Issue 1054
Not all IPython Consoles will have a valid variable explorer associated with
them, namely those that are attached to external kernels. Need to take this
into account when refreshing the variable explorer.
Spyder was crashing when switching from a supported version of IPython (0.13) to
an unsupported version of IPython (e.g. 1.0dev)

Update Issue 1374
Status: Fixed

Fixes bug reported in comment #5.
Minor translation fix to revision 1ebc50c40bca
Python 3 compatibility. Moved 'pyflakes' and 'rope' packages (only concerns the
repository) to a Python 2 specific package named 'external-py2'. Created another
directory ('external-py3') to host the Python 3 versions of these libraries.
setup.py: following revision 8a20db1e5ced, adding the new external-pyX packages
to the Windows installer
Breakpoints: Improve default placement of Breakpoints plugin.

Improve how Breakpoints plugin will be placed in both the default layout and
in the new 2.2 layout for users migrating from 2.1. Ultimately need to make
the Breakpoints plugin a standard plugin (Issue 1377).
Spyder plugins: added `on_first_registration` method to handle issues related to
the very first time a plugin is registered -- this helps solving layout issues
in a more generalized way than revision 1cb038d444f2.
Upgraded formlayout to v1.0.13