Use public api, move functions into public api

Need review on:

* Should these be public APIs?
* What should be done with bool flags?
Merge branch 'usePublicAPI' of github.com:brodyberg/Paket
Make getDependencies lazy