Functions, mod overwrite choice

Added a function to cut down on repeated code. More could be done in
that effort. Warns users that web server must be restarted to overwrite
an enabled mod. Not sure why Github cannot compare the character data of
the commits.