Added support for disabling autostart (pull request #30)

This pull request adds support for checking whenever autostart is enabled and adds support for disabling autostart.