Add support for java.util.Optional

Add support for _java.util.Optional_ for :
* Resources query parameters and return type.
* Injectable components
* Settings
Do not introduce any dependency to Java 8