added initial mongodb sync,
splitted formatter tests,
added middleware for 404, feature flags