Separated save from publish, hooking into the makeapi's "published" flag
squashed a bug that resulted in stacking publish calls
better cleanup
Merge pull request #350 from Pomax/bug912696v3

Separated save from publish, hooking into the makeapi's "published" flag