move license to .txt file
break mementos.c into several smaller files

the key reason for doing this is to enable different FRAM and flash
checkpointing operations.