Make collection field of ReferenceField optional.

Currently, there is no way to represent the reference to itself.
This patch makes collection field optional. The reference field without
collection field will be treated as raw object id.
Run Play application in JavaScript console.

Many Play libraries depend on Play application. The same reason with
plugin test runner.
Add test case for ScriptableUUID.

It tests the basic functionality of the module.