Little api work

Just did a tiny bit of api work, trying to learn javascript and dart at
the same time, currently the api system is js and only displays online
user count and total user count, will add more to the system soon.