Refs #4611 - db_pending_migration/seed stored in settings

This way, we can determine in the installer if the rake db:migrate/seed
should be run in the installer.

Later, we also could use this information to inform the entering user that
the application is not in ready state yet: preparation for maintenance
page.

Also, rake-ify scripts/foreman-config so that now you can run:

    foreman-rake config -- -k key -v value_to_set

With all the behaviour keeping from the origin script/foreman-config
(the script/foreman-config is still working, although deprecated)
There was an issue with reloading after migration and since this is required only for installer I think it's OK, to reset just after seed (which is likely to be executed just after migration anyway)