Preparatory commits for "universal door"

These changes are needed to support the universal door.
Reviewers: @josh-ripple @mtrippled 
The return type is on the next line of the function declaration:
https://github.com/ripple/rippled/pull/644/files#diff-e4041473cd5cc021cf9481774ca1ec3fR133