Introduced platforms to sample app

Working platform code. With new routes and handlers from mainline. Adapted services to new platform. 

BUG: For some reason, the form won't close.