Custom inputs namespaces

This add the custom inputs namespace feature that was originally created in this PR #1081.

This PR fixes the custom input class lookup on previous versions of ruby. It also make the custom inputs namespaces has precedence  to top level namespace inputs.

@rafaelfranca Could you take a look?

Thank you @vala for the contributing. 
@lucasmazza Is not the same result, the `find` method returns the value of the array and not the result of the block operation.