Rebased on latest Ace. Added Coffee Fold Mode

Replacing https://github.com/ajaxorg/ace/pull/1584/ with this pull request, which contains fixes suggested by @nightwing