Bulk save functionality (setItems method) + other minor fixes

No new tests, existing tests work
Why this change? JSHint should be okay using double quotes when there are single quotes inside.