added logic to harvest app layout to be recorded
added code to enable rails to receive new page layout
rails now properly receives data from ajax post
fixed bug in JSON structure sent to rails