Add test for creating datasources over REST

/to @seanbrookes 

This fixes the weird circular JSON structure error (caused by longjohn). It also adds a test for creating datasources over REST (which passes without changing anything, but uses the server facet).