Moved admin settings to a separate file

Moved admin settings to a separate file.
Also made some breaking changes necessary to make the module more
generalized.