Add helpful methods for publishing, initializing

Added methods in LapisApi.java for publishing and initializing an array
of type double with a single call.
Added Flags class for dealing with arrays as flags

Added Flags class providing static helper methods for dealing with
arrays of type double (length one) as flags, as is required for full
MATLAB interop.
Cleaned up example "simulations"