cadnano_api : moved all functions outside, so they are also available after having imported the module. get_api() now simply returns a copy of module's globals() with a few objects filtered away (those starting with underscore).
Fixed cadnano_api.a() using now undefined app variable.