Implemented apiloader

Implemented a apiloader to dynamically load apis from the folder "api"
Apis can have dependencies on other apis.
Also added a file api to easier read and write files (going to hopefully
rewrite this soon)