Add Entity#as_json

This pull request adds an `as_json` instance methods to entities, allowing us to use this type of code:

```ruby
def show
  @entity = UserEntity.find(@user)
  render json: @entity
end

protected

def fetch_user
  @user = User.find(params[:id])
end
```