Split RPL into core and mode related functions.

Conflicts:
	sys/net/routing/rpl/rpl.c