Add Ashan's code as 'backend' (todo: remove frontend stuff)