Create activity logging

When resource is created it will create an activity.

+ fixes for elasticsearch on heroku