Use https://rubygems.org in Gemfile
Store brackets as a tree. Closes #3