added middleware for beforeSave
added beforeSave callback method, now prompts user for permissions if required on publish
release 0.0.98