Use statics instead of singletons, moved Main to samples
Usuable by haxelib
Getting rid of macros because they don't play nice with haxelib