Add CodeSniffer to enforce codding standards

Add CodeSniffer dependency as well as pre-commit hook and travis script
Fix all code-style errors