Added reveal attribute
Refactored all resource to take DB instead of collection. Started work on private/public log