For 1) see
to control the sequence of loading the different files.
Or you may use System started triggers, there are many examples here in the forum.
System started
For 2) see
to setup persistence (mapdb is a good choice)