Name refactoring and adding basic for REST API using Cowboy