Added "onFirstRun"

Added "onFirstRun" for plugins to do stuff on first run, like creating
tables.