Warning fixes

Just a bunch of warning removals.This branch also includes the fix for [i224](http://gsd.uwaterloo.ca:8888/question/1039/layoutresolver-missing-field-in-record)

Also includes a fix to a bug where OPTIONS command was not wokring properly.