Added Rails 4 support

Also fixed bugs arising from COMP_WORDBREAKS breaking at ':' and '=' signs.