Auto-escape ' inside single-quoted strings.

Given the following text in a buffer, with | representing the cursor:

    'foo|bar'

Then pressing ' should give the following result:

    'foo\'|\'bar'

This is a part fix to Fuco1/smartparens#77.