Apex Rest support in SmartSync

Also added tests for the low level functions.
Missing: tests for the new classes Force.ApexRestObject and Force.ApexRestCollection (however the functions that they call have tests) - need to produce some documentation first.