Merge common_result.hh into function_helper.hh

Meta-programming features related to functions should be collected in
the function_helper.hh header file.
Rename file_descriptor_set_fake::MAX_VALUE to max

Fix up for #121
Merge pull request #136 from magicant/refactor/misc

Miscellaneous refactoring