Adds Basic Auth to the '/check' endpoint

Hey, I was about to use your gem and realized that the '/check' endpoint was open to anyone so I decided to add basic authentication to the '/check' endpoint while also keeping the previous functionality in case if people want it unauthenticated.

Please let me know if I need to change anything.

Thanks
Could you use single quotes, instead of double quotes?