Moved api files to a api directory
Seprated api file into two. The Base*API does not need user implementation
Added BrianAPI and related files to api, so it can be used by non-test scripts as well