(WIP) Replace erlang cookie fact with type and provider

Alternate proposal to #278 
heh. i'd break this line up, so we can still see the if ;)
(i hope i'm not being a pest here._.)