Company API with tests

Also added some company front end code