Refine API reload mechanism -- reloading the whole project causes serious problems. Closes #51.