Fixed 2 bugs

bug 1: adding a resources to an activity was not stored in dB
bug 2: http stream was not handled async thus blocking code