Application function

Creates application - RestRserve usage starts from here