Implement tab autocomplete

Fixes #15.