Break out the metrics store into its own module

Move server specific things into main module