Adding CAN filter management

(Second pull request. The first failed in travis due to a DNS error)
Added some code to be able to configure CAN filtering.