Smart implementation of REST for Nette