Adding the batch anomaly scores REST functions
Adding tests and docs for batch anomaly scores
Small refactoring