Added controller /machine/gettokenapps

Added the basic function for this controller
including test.

Working on #10