Implement regexp::match_t::operator[]

This can be used to access the n’th capture (as a std::string). If there is no capture, NULL_STR is returned.
Add convenience API for searching std::string
Add minimal tests for regex::search
Switch to simpler regexp::search
Use regexp::match_t::operator[]

Also bypass NSString/c_str() by using std::stod().
Change strtol → std::stol (C++11)

I initially wanted to do this change globally, but std::stoX will throw an exception if it fails to parse something and we use strtoX a few places where parsing nothing (and getting back zero) is fine.
Use exp2(x) instead of pow(2, x)
Change push_back → emplace_back (C++11)

This is mainly motivated by readability, so I only did a few select replacements.
Parse headers received in post_to_server
Show notification when posting crash reports (10.8)

This is both to remind the user that crash reports are automatically submitted and to make it easy for them to point us to a specific crash, as notification center will now work as a list of recent crashes; click on one of them to see the online version.
A file suffix in file chooser would rank too high
Move some user defaults key to respective framework

Initially I wanted all keys in a single header file but to avoid circular dependencies then this header would need to be in a framework that doesn’t depend on anything else, and the main benefit was only to have a single place to look for which keys exist, but now that we consistently prefix settings keys with ‘kUserDefaults’ then it’s easy to extract all keys via search.
Support disabling “keep bundles updated”

We still update the sources because the user may manually install bundles, and in this case he should install from a recent bundle index.
Expose outlineView property of file browser
Moving focus to file browser now select first item

This is only when using the special Navigate → Move Focus to File Browser (⌥⌘⇥) command and is mainly because there is no other visual feedback (other than the text view being rendered in its inactive state).

I could see sometimes not wanting a selection in the file browser, this however seems like a general problem (i.e. the solution should likely be to introduce a way to “deselect all”).
Look at entire line when auto-pairing characters

When inserting paired characters where the pair consists of the same two characters, we look if the line is already balanced, and if so, insert a pair, and if not, only insert a single character. Previously we only looked at what was left of the caret, though TextMate 1.x looked at the full line, which we now also do in 2.0.

Closes #508.
Allow disabling auto-indent for snippets

Snippets are normally inserted with indent matching that of the caret. This isn’t always desired, which is why TM 1.x allowed this feature to be disabled. This is now also supported for 2.0.

Closes #387.
Move file browser divider into parent view
Tweak OakGradientView

- Accept two NSGradient objects instead of four colors.
- Call designated initializer on super instead of self since subclass is likely calling us from its designated initializer
- Make class public
Let file browser header inherit from OakGradientView