Cleanup of primitives implem
Make it all in one single file & cleanup constants for LFSR and xtime. This might give more optimization opportunities to the compiler (both speed & size-wise).
This should be benchmarked before merging to prevent any accidental regression.