Improved reliability, removed insecure and autopublish.

autopublish and insecure package are removed, and changes regarding these removals are made.
System seems to be working correctly now.