A modular mining pool implementation in Java and PHP