Added application controller

#17