added basic logic for registration and resolving
added test app