Refactor of primes charm into distinct http version