add functions to compute deviations (moved from MLBase)
add docs for deviation computing
Merge pull request #84 from JuliaStats/dh/deviation

Move some functions for deviation computing from MLBase to here