Extract report functionality from access-lint gem into JS library.

Line is too long.