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 (we are still escaping when we shouldn't).

Let me know if there are any improvements you'd like.