Made version api smarter. Added some frontend stuff.