A number of bug fixes and performance enhancements

This is a rather large commit of various bug fixes and performance enhancemnets that have taken place during the process of open-sourcing. From here on we should be able to apply more focused pull-requests.
Update .gitignore

Have it more closely match the public settings.
remove test account
Merge branch 'migration' of github.com:nyaruka/rapidpro into migration
Merge pull request #1 from nyaruka/migration

A number of bug fixes and performance enhancements