Remove codejunk

Extra whitespace, explicit returns, and an extra begin/end pair are all
gone.
Use an attr_reader for attributes
Cache the project and context names