Fix bugs of pulltorefresh plugin.
Added full lock for db
Support batch operations in one transaction
Support multi receivers in service