Move the capabilities detection into a runtime method
Merge pull request #482 from dotcloud/move_capabilitie_function

* runtime: Move the capabilities detection into a runtime method