1.Reffernce:
http://blog.cloudshare.com/2013/01/15/how-to-install-and-configure-workflow-infrastructure-in-sharepoint-2013/
http://msdn.microsoft.com/en-us/library/office/jj163276(v=office.15).aspx