Initial commit, part of the api working somewhat.