Added basic support for flycheck.

Adresses #30. Follow up to deal with phpcs and css/js mode.