Initial version for code review

Because the initial development was occurring on master, there isn't an easy way to do code review. This pull exists solely as a means to code review the entire project. Any changes will be put straight into master and this pull will be closed and the `initial-code-review` branch deleted. All future development will use pull requests into master to facilitate code review.
This has a very low chance of overlap... but might it be worth it to create a static array of the *current* scopes and verify that this value is indeed unique? Generating the prefix shouldn't happen much, so I don't think it would introduce much overhead.