Shell: save history in home dir. Closes #1395.

Specifically, $PWD/.shell_history is now ~/.neo4j_shell_history.
Fixed critical Browser bugs for Internet Explorer

* Updated Angular.js to 1.2.4
* Updated Codemirror
* Fixed overflow bugs on SVG canvas
* Added upgrade splash for IE < 9

fix(browser): overflow hidden on svg elements make IE10 display visualisations better

chore(browser): update to Angular 1.2.3. Animations are still broken

fix(browser): use correct styling directive for legend. Fixes problem in IE10 where they didn't show

Fixes IE not expanding rendered frames to full height

Fix animating frame on enter

Fix for nested .animate() not being triggered

Fixes positioning of frame actions

Added upgrade splash for internet explorer < 9

Fixed drag n' drop for Angular 1.2

Remove console.log in FileUpload directive

Fix editor in IE by upgrading Codemirror

Fix multi-line mode

Focus editor the right way when clicking editor area

Fixed tooltip visibility

Put max height on label color legend

Fix animations

Fcous editor on load

Initialize cursor properly in IE

Fixed drawer animations

Fixed error bar animation

Fix problem when inspector content didn't load + update Angular to 1.2.4
Add some acceptance tests of profiling OPTIONAL MATCH, MERGE and UNION queries
Update angular reference.
Edit files with Notepad if Desktop.edit fails

The previous code, with its clever use of rundll32 url.dll,FileProtocolHandler is not robust across various versions of Windows.
traversal for constant direction

Implementing a PathExpander ensuring that relationship direction will be constant along the path.
The first relationship determines the direction to follow for all subsequent steps.
Relates to http://stackoverflow.com/questions/20654988/directed-paths-in-neo4j
Sends booked instance payload for repropose after rejectPrepare

this will fix an issue where there were a null payload when reproposing an
instance.
applying codestyle
tidying up and fixing tests
tidying up and fixing tests
Switches to master role in a separate thread

just like the switching to slave. This is done because switching to master
used to happen in the same thread handling the state change, directly from
the state machines (via a state change listener). The state machines
framework is designed such that handling and processing of messages must
be instantaneous. No waiting or costly operations should occur as part of
handling a message, since such will block all other state machine message
handling from occuring.

With this change a switch operation will be scheduled and started in the
very near future, but executed by another thread so that the actual state
transition handling is quick.

The issue this fixes is that heart beats were blocked during a master
switch so that after a master switch was completed and the new master came
up there were immediately suspicions against it and some rather
unnecessary switching occuring as part of it.
Merge pull request #1740 from sarmbruster/constant_direction_expander

traversal for constant direction
Merge pull request #1741 from tinwelint/2.0-reject-prepare-fix

Fixes two clustering issues causing temporary or permanent absence of master
Merge pull request #1726 from jotomo/shell-history-to-home-dir

Shell: save history in home dir. Closes #1395.
Waits for db availability since state switching is async nowadays
Merge pull request #1739 from chrisvest/neo4j-desktop-open-with-fix

Edit files with Notepad if Desktop.edit fails
Merge pull request #1733 from apcj/browser-ie-compat

Browser: Internet Explorer compatibility
Merge pull request #1730 from chrisvest/acceptance-tests-for-profiling

Add some acceptance tests of profiling OPTIONAL MATCH, MERGE and UNION queries
Uses individual directories for forensics purposes
Revert "Switches to master role in a separate thread"

This reverts commit 48d226980799ee3ef6c6e7b2fa5e1af32e55b20a.

Reason is that this will allow for out-of-order masterIsAvailable events
to be sent, which at least messes up some tests, and perhaps semantically
will introduce other problems. Reverting to think a bit more about it.