Refactoring "checks_functions" to check function definitions

- old checks_functions functionality preserved as "checks_calls"
- new checks added to catch defaulting to bad SSL versions

Change-Id: I3b01fcc53de1bbfc2b76bd86b47e81b143161593