readded changes made in noworking branch part 1
readded changes made in noworking branch part 2
fixed bugs and changed to is_owner for performance reasons
deleted debug line
changed to is_owner for performance reasons
installed mini profiler
added is_owner function
updated gems