Merged the init.c and recv.c files.

Moved functionality around so that init.c and recv.c could be
shared between the AVR code and the generic code. The send
code still has a priority value in the generic case, so a merge
is unlikely.