Get rid of old modal types

Fixes TryGhost/Ghost-UI/issues/17
Merge pull request #2401 from JohnONolan/fix-modal

Get rid of old modal types
Watch changes in Ghost-UI

refs TryGhost/Ghost-UI#18
- Add bower_components/ghost-ui to grunt watch
Merge pull request #2402 from halfdan/watch-ghost-ui

Watch changes in Ghost-UI
Fix earlier commit for grunt watch.

refs TryGhost/Ghost-UI#18
- Trigger livereload when files in core/client/assets/css/ change
- Copy over new ghost-ui files when changed
Remove .bowerrc

If there are no further comments or suggestions for #2386 then I think it would be good to get this in. Remove .bowerrc from base repo but allows it to still be used for people with specialised dev environments by adding to .gitignore
Merge pull request #2407 from JohnONolan/no-bowerrc

Remove .bowerrc
Fixes race conditions in functional test introduced in PR#2395

fixes PR#2395
- in editor_test.js line 272, I wait until the post settings menu appears, and THEN also wait until the delete post button appears, rather than just waiting for the first condition, this can result in a race condition which has been seen.
- in editor_test.js line 229, I click on the tag, then wait until it disappears, rather than asserting the tag doesn't exist immediately.  This could potentially result in a race condition, but I have not seen it yet.
- in editr_test.js line 315, I click on the delete post button, and now wait for the modal container to appear before clicking the accept button.  This could result in a race condition, but I have not seen it yet.
Merge pull request #2430 from mattse/mattse#2409

Fixes race conditions in functional test introduced in PR#2395
Fixes random pg failures.

fixes #2075
- Updates knex to latest version
- Fixes expected value in page test
- Change fixture insertion to be sequential
- Add orderBy to insertMorePostsTags fixture helper
Merge pull request #2403 from halfdan/watch-ghost-ui2

Fix earlier commit for grunt watch.
Merge pull request #2409 from halfdan/2075-pg-errors

Fixes random pg failures.
Fix scoping issue on signup

closes #2429
Refactor the Ghost Editor

issue #2385, issue #2108

- Separate out the various objects which form the editor into their own
  modules
- Decouple the modules where possible
- Rename and reshuffle bits of modules for consistency
- Minimise public APIs of the modules, and ensure they are consistent
- Add comments to the modules
Upgrade CodeMirror

closes #2108

- upgrade to 4.0.1
- requires removing the deprecated setLine method
Fix undo bug

issue #2436
Merge pull request #2398 from ErisDS/cm-refactor

CodeMirror Refactor & Upgrade
Force preview to scroll to the end

fixes #958, fixes #535

- If the cursor is within the last 5 lines, then scroll to the end of the preview window, rather than using a ratio
Merge pull request #2428 from Decad/master

Fix scoping issue on signup
Merge pull request #2437 from ErisDS/cm-scroll

Force preview to scroll to the end