Added basic repeat attack prevention. Mongo logging et al.