Split RPL into core and mode related functions.
Merge pull request #1167 from fabianbrandt/rpl_base_split

Split RPL into core and mode related functions.