Don't include ex_doc as dependency on Hex

Also changes dependency definitions to use :only to set the environment instead of pattern matching.